From 6fdde32f86d0712dc4a93bac9c8c4dbcb455b020 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 10 Mar 2025 22:59:46 +0100 Subject: [PATCH] Remove check for PHP version --- adminer/include/functions.inc.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 3daa9905..0dcb1bd1 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -918,11 +918,7 @@ function input($field, $value, $function) { $name = h(bracket_escape($field["field"])); echo ""; if (is_array($value) && !$function) { - $args = array($value); - if (version_compare(PHP_VERSION, 5.4) >= 0) { - $args[] = JSON_PRETTY_PRINT; - } - $value = call_user_func_array('json_encode', $args); //! requires PHP 5.2 + $value = json_encode($value, 128); // 128 - JSON_PRETTY_PRINT available since PHP 5.4 $function = "json"; } $reset = (JUSH == "mssql" && $field["auto_increment"]);