From 2dd32cf5345d6218206eed2cce88f4fdd3fe8275 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 19 Mar 2025 18:22:57 +0100 Subject: [PATCH] Plugin pretty-json-column: fix with enum (fix #928) Also add syntax highlighting. --- plugins/pretty-json-column.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/pretty-json-column.php b/plugins/pretty-json-column.php index 374fd782..92489cbf 100644 --- a/plugins/pretty-json-column.php +++ b/plugins/pretty-json-column.php @@ -18,9 +18,8 @@ class AdminerPrettyJsonColumn { $json = $this->testJson($value); if ($json !== $value) { $jsonText = json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); - return "" . Adminer\h($jsonText) . ""; + return "" . Adminer\h($jsonText) . ""; } - return ''; } function processInput($field, $value, $function = '') {