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 '';