diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 6963682112..4b81875634 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -815,6 +815,16 @@ EOT; } elseif(is_array($value) or is_object($value) or is_string($value)) { + if(is_array($value) or is_object($value)) + { + $newValue = array(); + foreach($value as $k => $v) + { + $newValue[$k] = is_numeric($v) ? (string)$v : $v; + } + $value = $newValue; + } + $value = json_encode($value); $js .= "$key = $value"; }