Separate function and value

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@632 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-05-31 19:54:30 +00:00
parent 5e2989a714
commit 6d3b5935eb
4 changed files with 7 additions and 9 deletions

View File

@@ -66,7 +66,7 @@ if ($fields) {
unset($create);
echo "<table cellspacing='0'>\n";
foreach ($fields as $name => $field) {
echo "<tr><th>" . htmlspecialchars($name) . "</th><td>";
echo "<tr><th>" . htmlspecialchars($name) . "</th>";
$value = (!isset($row) ? $field["default"] :
(strlen($row[$name]) && ($field["type"] == "enum" || $field["type"] == "set") ? intval($row[$name]) :
($_POST["clone"] && $field["auto_increment"] ? "" :