From 3a1c2510653a70f6b5d23b37127a770a908c461f Mon Sep 17 00:00:00 2001 From: shaununderwood Date: Sun, 23 Oct 2016 20:23:38 +0100 Subject: [PATCH] Changed 'undefined' to 'null' 'undefined' is not a valid JSON attribute value and should been 'null' --- adminer/include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index e7bdb162..8b97138d 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -243,7 +243,7 @@ function json_row($key, $val = null) { echo "{"; } if ($key != "") { - echo ($first ? "" : ",") . "\n\t\"" . addcslashes($key, "\r\n\"\\/") . '": ' . ($val !== null ? '"' . addcslashes($val, "\r\n\"\\/") . '"' : 'undefined'); + echo ($first ? "" : ",") . "\n\t\"" . addcslashes($key, "\r\n\"\\/") . '": ' . ($val !== null ? '"' . addcslashes($val, "\r\n\"\\/") . '"' : 'null'); $first = false; } else { echo "\n}\n";