| " . htmlspecialchars($name) . " | ";
$value = (!isset($row) ? $field["default"] :
(strlen($row[$name]) && ($field["type"] == "enum" || $field["type"] == "set") ? intval($row[$name]) :
($_POST["clone"] && $field["auto_increment"] ? "" :
diff --git a/include/editing.inc.php b/include/editing.inc.php
index 4d207460..d71228f3 100644
--- a/include/editing.inc.php
+++ b/include/editing.inc.php
@@ -1,11 +1,10 @@
") { //! pass empty separator if there are no functions in the whole table
global $types;
$name = htmlspecialchars(bracket_escape($name));
+ echo " | ";
if ($field["type"] == "enum") {
- if (isset($_GET["select"])) {
- echo ' ';
- }
+ echo $separator . (isset($_GET["select"]) ? ' ' : "");
if ($field["null"] || isset($_GET["default"])) {
echo ' ';
}
@@ -33,9 +32,7 @@ function input($name, $field, $value) {
if ($field["null"] || isset($_GET["default"])) {
array_unshift($options, "NULL");
}
- if (count($options) > 1 || isset($_GET["select"])) {
- echo '';
- }
+ echo (count($options) > 1 || isset($_GET["select"]) ? '' : "") . $separator;
if ($field["type"] == "set") { //! 64 bits
preg_match_all("~'((?:[^']+|'')*)'~", $field["length"], $matches);
foreach ($matches[1] as $i => $val) {
|
|---|