瀏覽代碼

Update Json.php

Siad Ardroumli 12 年之前
父節點
當前提交
fd983eb2be
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      library/Zend/Json.php

+ 1 - 1
library/Zend/Json.php

@@ -77,7 +77,7 @@ class Zend_Json
 
             // php < 5.3
             if (!function_exists('json_last_error')) {
-                if ($encodedValue === 'null') {
+                if (strtolower($encodedValue) === 'null') {
                     return null;
                 } elseif ($decode === null) {
                     require_once 'Zend/Json/Exception.php';