fixed JSON padding

This commit is contained in:
Steffen Vogel 2011-06-24 17:44:19 +02:00
parent e4b1f69548
commit 3493bce3bc

View file

@ -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;
}