1
0
mirror of synced 2025-01-30 20:11:49 +03:00

initialized $columns in listTableColumns. it threw an undefined variable error if the table was missing or had no columns defined.

This commit is contained in:
samw3 2007-11-07 04:15:45 +00:00
parent a476c62efe
commit f6a0aeb5d7

View File

@ -120,6 +120,7 @@ class Doctrine_Import_Mysql extends Doctrine_Import
$result = $this->conn->fetchAssoc($sql); $result = $this->conn->fetchAssoc($sql);
$description = array(); $description = array();
$columns = array();
foreach ($result as $key => $val) { foreach ($result as $key => $val) {
$val = array_change_key_case($val, CASE_LOWER); $val = array_change_key_case($val, CASE_LOWER);