fix notice

This commit is contained in:
Brion Vibber 2010-10-29 14:49:05 -07:00
parent e7c7fd39fc
commit 1daa1bfa39

View File

@ -945,7 +945,7 @@ class Schema
*/ */
function validateDef($tableName, array $def) function validateDef($tableName, array $def)
{ {
if (count($def) && $def[0] instanceof ColumnDef) { if (isset($def[0]) && $def[0] instanceof ColumnDef) {
$def = $this->oldToNew($tableName, $def); $def = $this->oldToNew($tableName, $def);
} }