Empty function name for required fields

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1035 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-08-28 14:16:44 +00:00
parent 309f6813f1
commit 2f272b05e0

View file

@ -283,7 +283,7 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5
}
function editFunctions($field) {
$return = array($field["null"] || $field["auto_increment"] ? "" : "*");
$return = array("" => ($field["null"] || $field["auto_increment"] ? "" : "*"));
if (ereg('date|time', $field["type"])) {
$return[] = "now";
}