mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 00:28:34 +02:00
Increase readability
This commit is contained in:
@@ -138,8 +138,14 @@ if (!$fields) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$value = ($row !== null
|
$value = ($row !== null
|
||||||
? ($row[$name] != "" && $jush == "sql" && preg_match("~enum|set~", $field["type"]) ? (is_array($row[$name]) ? array_sum($row[$name]) : +$row[$name]) : $row[$name])
|
? ($row[$name] != "" && $jush == "sql" && preg_match("~enum|set~", $field["type"])
|
||||||
: (!$update && $field["auto_increment"] ? "" : (isset($_GET["select"]) ? false : $default))
|
? (is_array($row[$name]) ? array_sum($row[$name]) : +$row[$name])
|
||||||
|
: $row[$name]
|
||||||
|
)
|
||||||
|
: (!$update && $field["auto_increment"]
|
||||||
|
? ""
|
||||||
|
: (isset($_GET["select"]) ? false : $default)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
if (!$_POST["save"] && is_string($value)) {
|
if (!$_POST["save"] && is_string($value)) {
|
||||||
$value = $adminer->editVal($value, $field);
|
$value = $adminer->editVal($value, $field);
|
||||||
|
Reference in New Issue
Block a user