fix a php notice when altering a col with a type without length
authorioguix <ioguix>
Sat, 15 Sep 2007 13:53:05 +0000 (13:53 +0000)
committerioguix <ioguix>
Sat, 15 Sep 2007 13:53:05 +0000 (13:53 +0000)
colproperties.php

index 0ff013027669679e1c72dbd06cb268a9fa3acf91..66d5c0657b1ac30fdc3b1799e1a4c30173e638c9 100644 (file)
                                        doProperties($lang['strcolneedsname']);
                                        return;
                                }
-
+                               if (!isset($_REQUEST['length'])) $_REQUEST['length'] = '';
                                $status = $data->alterColumn($_REQUEST['table'], $_REQUEST['column'], $_REQUEST['field'], 
                                                             isset($_REQUEST['notnull']), isset($_REQUEST['oldnotnull']), 
                                                             $_REQUEST['default'], $_REQUEST['olddefault'],