From: Brion Vibber Date: Fri, 29 Oct 2010 21:49:05 +0000 (-0700) Subject: fix notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1daa1bfa39c392375c8e60120b803e5633142a6f;p=quix0rs-gnu-social.git fix notice --- diff --git a/lib/schema.php b/lib/schema.php index e4b7f416cd..d62db87935 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); }