Commit 13e1fab9 authored by Evan Prodromou's avatar Evan Prodromou

be more careful with returned table def for schema

parent 1040f134
......@@ -107,9 +107,11 @@ class Schema
{
$td = $this->getTableDef($table);
foreach ($td->columns as $cd) {
if ($cd->name == $column) {
return $cd;
if (!empty($td) && !empty($td->columns)) {
foreach ($td->columns as $cd) {
if ($cd->name == $column) {
return $cd;
}
}
}
......
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