diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-03-10 17:06:48 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-03-10 17:06:48 +0000 |
commit | e4a6ff42700316af10b9eac09e68292a3f74347a (patch) | |
tree | a01fe7a94ce3a2df806aea725aa6f0326b1d2136 /includes | |
parent | 3ead560368255d17a43f8b14df554a776417ec03 (diff) | |
download | brdo-e4a6ff42700316af10b9eac09e68292a3f74347a.tar.gz brdo-e4a6ff42700316af10b9eac09e68292a3f74347a.tar.bz2 |
- #53368: Output stricter (IE5-compatible) JSON
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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: |