Commit f6a0aeb5 authored by samw3's avatar samw3

initialized $columns in listTableColumns. it threw an undefined variable error...

initialized $columns in listTableColumns. it threw an undefined variable error if the table was missing or had no columns defined.
parent a476c62e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment