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:
parent
a476c62efe
commit
f6a0aeb5d7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user