Permalink
Browse files

optimized by replacing a function reference with direct syntax

  • Loading branch information...
and-ers committed Feb 2, 2013
1 parent dd02b17 commit 144de3f745251553393ea4f3421d5c89021bc669
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/web/helpers/CJSON.php
@@ -329,7 +329,7 @@ public static function decode($str, $useArray=true)
// based on investigation, native fails sometimes returning null.
// see: http://gggeek.altervista.org/sw/article_20070425.html
// As of PHP 5.3.6 it still fails on some valid JSON strings
- if(!is_null($json))
+ if($json !== null)
return $json;
}

0 comments on commit 144de3f

Please sign in to comment.