From a1ea34db08055d259757122397303e98928657a1 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 4 Jul 2007 16:47:59 +0000 Subject: [PATCH] Replace pow() by bit operations git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@25 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- edit.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit.inc.php b/edit.inc.php index 246d3a18..161a419b 100644 --- a/edit.inc.php +++ b/edit.inc.php @@ -86,12 +86,12 @@ foreach ($fields as $name => $field) { preg_match_all("~'((?:[^']*|'')+)'~", $field["length"], $matches); foreach ($matches[1] as $i => $val) { $id = "$name-" . ($i+1); - echo ' '; + echo ' > $i) & 1 ? ' checked="checked"' : '') . ' />'; } } elseif (strpos($field["type"], "text") !== false) { echo ''; } else { //! numbers, date, binary - echo ''; + echo ''; } if ($field["null"] && preg_match('~char|text|set~', $field["type"])) { echo '';