mirror of
https://github.com/vrana/adminer.git
synced 2025-08-20 21:31:44 +02:00
Select original value
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@767 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -67,8 +67,9 @@ if ($fields) {
|
||||
echo "<table cellspacing='0'>\n";
|
||||
foreach ($fields as $name => $field) {
|
||||
echo "<tr><th>" . htmlspecialchars($name) . "</th>";
|
||||
$value = (!isset($row) ? ($_POST["clone"] && $field["auto_increment"] ? "" : ($where ? $field["default"] : null))
|
||||
: (strlen($row[$name]) && ($field["type"] == "enum" || $field["type"] == "set") ? intval($row[$name]) : $row[$name])
|
||||
$value = (isset($row)
|
||||
? (strlen($row[$name]) && ($field["type"] == "enum" || $field["type"] == "set") ? intval($row[$name]) : $row[$name])
|
||||
: ($_POST["clone"] && $field["auto_increment"] ? "" : ($where ? $field["default"] : false))
|
||||
);
|
||||
input($name, $field, $value);
|
||||
if (isset($_GET["default"]) && $field["type"] == "timestamp") {
|
||||
|
Reference in New Issue
Block a user