suppress warnings so test runner doesn't fart

This commit is contained in:
Rob McVey 2015-03-13 16:58:29 +00:00
parent b880714231
commit 3b01c5f842

View file

@ -149,9 +149,9 @@ class JsonView extends View {
}
if (version_compare(PHP_VERSION, '5.4.0', '>=') && Configure::read('debug')) {
$json = json_encode($data, JSON_PRETTY_PRINT);
$json = @json_encode($data, JSON_PRETTY_PRINT);
} else {
$json = json_encode($data);
$json = @json_encode($data);
}
if (function_exists('json_last_error') && json_last_error() !== JSON_ERROR_NONE) {