summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/TJavaScript.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts/TJavaScript.php')
-rw-r--r--framework/Web/Javascripts/TJavaScript.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/TJavaScript.php b/framework/Web/Javascripts/TJavaScript.php
index 17a8f39c..228dc88f 100644
--- a/framework/Web/Javascripts/TJavaScript.php
+++ b/framework/Web/Javascripts/TJavaScript.php
@@ -158,7 +158,7 @@ class TJavaScript
{
foreach($value as $k=>$v)
if($v!=='')
- $results[]=(is_string($k)?"'{$k}':":'').self::encode($v,$toMap);
+ $results[]="'{$k}':".self::encode($v,$toMap);
return '{'.implode(',',$results).'}';
}
else