From: jakubvrana Date: Fri, 29 Aug 2008 09:10:31 +0000 (+0000) Subject: Allow '' in enum X-Git-Tag: v3.0.0~1053 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=e798a963cb7e1257e75657267cbd715efdf1b011;p=adminer.git Allow '' in enum git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@464 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/editing.inc.php b/editing.inc.php index cd64dc9a..0dce0d20 100644 --- a/editing.inc.php +++ b/editing.inc.php @@ -11,12 +11,12 @@ function input($name, $field, $value) { foreach ($matches[1] as $i => $val) { $val = stripcslashes(str_replace("''", "'", $val)); $id = "field-$name-" . ($i+1); - $checked = (is_int($value) ? $value == $i+1 : $value === $val); //! '' collide with NULL in $_GET["default"] - echo ' '; + $checked = (is_int($value) ? $value == $i+1 : $value === $val); + echo ' '; } if ($field["null"]) { $id = "field-$name-"; - echo ' '; + echo ' '; } } elseif ($field["type"] == "set") { //! 64 bits preg_match_all("~'((?:[^']+|'')*)'~", $field["length"], $matches);