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:
committed by
Jakub Vrána
parent
246c3c489b
commit
acfebf1788
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user