]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix notice
authorBrion Vibber <brion@pobox.com>
Fri, 29 Oct 2010 21:49:05 +0000 (14:49 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 29 Oct 2010 21:49:05 +0000 (14:49 -0700)
lib/schema.php

index e4b7f416cd7fa7a4e474e9548e8831e876702e46..d62db879356a975d7e4fc1e1a058a79157f77ce9 100644 (file)
@@ -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);
         }