1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 14:46:36 +02:00

Plugins pretty-json-column: Encode value to JSON without white spaces

This commit is contained in:
Ludek Benedik
2025-05-14 20:28:46 +02:00
committed by Jakub Vrána
parent 246c3c489b
commit acfebf1788

View File

@@ -26,7 +26,7 @@ class AdminerPrettyJsonColumn extends Adminer\Plugin {
if ($function === '') { if ($function === '') {
$json = $this->testJson($value); $json = $this->testJson($value);
if ($json !== $value) { if ($json !== $value) {
$value = json_encode($json); return Adminer\q(json_encode($json));
} }
} }
} }