diff options
author | knut <> | 2008-07-30 01:43:12 +0000 |
---|---|---|
committer | knut <> | 2008-07-30 01:43:12 +0000 |
commit | 411fbb72f5a4c72e43af08ee403c79c73eb4b53f (patch) | |
tree | 3915b0d98ca3c0608b56ad280cb08b8837a43dea /framework/Web/Javascripts/TJavaScript.php | |
parent | d15b608ef693c8dbc92c3a5f5ae826ca2812a61f (diff) |
fixed #890
Diffstat (limited to 'framework/Web/Javascripts/TJavaScript.php')
-rw-r--r-- | framework/Web/Javascripts/TJavaScript.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/Javascripts/TJavaScript.php b/framework/Web/Javascripts/TJavaScript.php index d26d243a..9524076c 100644 --- a/framework/Web/Javascripts/TJavaScript.php +++ b/framework/Web/Javascripts/TJavaScript.php @@ -208,7 +208,7 @@ class TJavaScript */
public static function jsonEncode($value)
{
- if(is_null(self::$_json))
+ if(self::$_json === null)
self::$_json = Prado::createComponent('System.Web.Javascripts.TJSON');
return self::$_json->encode($value);
}
@@ -221,7 +221,7 @@ class TJavaScript */
public static function jsonDecode($value)
{
- if(is_null(self::$_json))
+ if(self::$_json === null)
self::$_json = Prado::createComponent('System.Web.Javascripts.TJSON');
return self::$_json->decode($value);
}
|