From e798a963cb7e1257e75657267cbd715efdf1b011 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Fri, 29 Aug 2008 09:10:31 +0000 Subject: [PATCH] Allow '' in enum git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@464 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- editing.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);