fixed JSON padding
This commit is contained in:
parent
e4b1f69548
commit
3493bce3bc
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class JSON extends View {
|
|||
$json = $this->json->encode((Util\Debug::isActivated()) ? JSON_PRETTY : 0);
|
||||
|
||||
if ($this->padding) {
|
||||
$json = 'if (' . $this->padding . ') { ' . $this->padding . '(' . $json . '); }';
|
||||
$json = $this->padding . '(' . $json . ');';
|
||||
}
|
||||
echo $json;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue