1
0
mirror of synced 2025-01-29 19:41:45 +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

@ -119,7 +119,8 @@ class Doctrine_Import_Mysql extends Doctrine_Import
$sql = 'DESCRIBE ' . $this->conn->quoteIdentifier($table, true);
$result = $this->conn->fetchAssoc($sql);
$description = array();
$description = array();
$columns = array();
foreach ($result as $key => $val) {
$val = array_change_key_case($val, CASE_LOWER);