only walk an array

remotes/origin/ldap_group_count
Thomas Müller 11 years ago
parent 277ae28171
commit 6c707323f2
  1. 4
      lib/private/json.php

@ -116,7 +116,9 @@ class OC_JSON{
* Encode JSON
*/
public static function encode($data) {
array_walk_recursive($data, array('OC_JSON', 'to_string'));
if (is_array($data)) {
array_walk_recursive($data, array('OC_JSON', 'to_string'));
}
return json_encode($data);
}
}

Loading…
Cancel
Save