mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Remove check for PHP version
This commit is contained in:
@@ -918,11 +918,7 @@ function input($field, $value, $function) {
|
|||||||
$name = h(bracket_escape($field["field"]));
|
$name = h(bracket_escape($field["field"]));
|
||||||
echo "<td class='function'>";
|
echo "<td class='function'>";
|
||||||
if (is_array($value) && !$function) {
|
if (is_array($value) && !$function) {
|
||||||
$args = array($value);
|
$value = json_encode($value, 128); // 128 - JSON_PRETTY_PRINT available since PHP 5.4
|
||||||
if (version_compare(PHP_VERSION, 5.4) >= 0) {
|
|
||||||
$args[] = JSON_PRETTY_PRINT;
|
|
||||||
}
|
|
||||||
$value = call_user_func_array('json_encode', $args); //! requires PHP 5.2
|
|
||||||
$function = "json";
|
$function = "json";
|
||||||
}
|
}
|
||||||
$reset = (JUSH == "mssql" && $field["auto_increment"]);
|
$reset = (JUSH == "mssql" && $field["auto_increment"]);
|
||||||
|
Reference in New Issue
Block a user