diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-29 14:49:05 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-29 14:49:05 -0700 |
commit | 1daa1bfa39c392375c8e60120b803e5633142a6f (patch) | |
tree | 2487b26caa1fe3a1ddb4c0d4411b5bfeeab6102f /lib/schema.php | |
parent | e7c7fd39fc948f1169512916077185dd29973b60 (diff) |
fix notice
Diffstat (limited to 'lib/schema.php')
-rw-r--r-- | lib/schema.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/schema.php b/lib/schema.php index e4b7f416c..d62db8793 100644 --- a/lib/schema.php +++ b/lib/schema.php @@ -945,7 +945,7 @@ class Schema */ 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); } |