summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2012-02-11 08:37:53 +0000
committerctrlaltca@gmail.com <>2012-02-11 08:37:53 +0000
commit78386438637ecf33e2feeb99c1a922ee713a58a2 (patch)
tree24ed0cd335f964bccb732d3f323c2877ee0e31a8 /framework/Web/Javascripts
parente963d62c3f65d861db977efc2489ccf4b631beb5 (diff)
additional patch for #382
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r--framework/Web/Javascripts/TJavaScript.php4
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");
}
}