Reduce number of ops

This commit is contained in:
Zach Borboa
2019-05-12 21:13:07 -07:00
parent 73bf10e265
commit 9a538f3a6b
10 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class Encoder
}
$value = call_user_func_array('json_encode', $args);
if (!(json_last_error() === JSON_ERROR_NONE)) {
if (json_last_error() !== JSON_ERROR_NONE) {
if (function_exists('json_last_error_msg')) {
$error_message = 'json_encode error: ' . json_last_error_msg();
} else {