diff options
Diffstat (limited to 'framework')
-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 68908f9e..236924bc 100644 --- a/framework/Web/Javascripts/TJavaScript.php +++ b/framework/Web/Javascripts/TJavaScript.php @@ -250,7 +250,7 @@ class TJavaScript if(!defined('JSON_ERROR_UTF8'))
define('JSON_ERROR_UTF8', null);
- switch (json_last_error())
+ switch ($err = json_last_error())
{
case JSON_ERROR_NONE:
return;
@@ -274,7 +274,7 @@ class TJavaScript $msg = 'Unknown error';
break;
}
- throw new Exception("JSON encode error ($err): $msg");
+ throw new Exception("JSON error ($err): $msg");
}
}
|