From e4a6ff42700316af10b9eac09e68292a3f74347a Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 10 Mar 2006 17:06:48 +0000 Subject: - #53368: Output stricter (IE5-compatible) JSON --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/common.inc b/includes/common.inc index f87d9b6c5..ef000ecf5 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1208,7 +1208,7 @@ function drupal_to_js($var) { case 'object': $output = array(); foreach ($var as $k => $v) { - $output[] = $k .': '. drupal_to_js($v); + $output[] = drupal_to_js(strval($k)) .': '. drupal_to_js($v); } return '{ '. implode(', ', $output) .' }'; default: -- cgit v1.2.3