@@ -1484,7 +1484,7 @@ function number_pad($number,$n) {
//json detection
if (!function_exists('is_json')) {
function is_json($str) {
- return (is_string($str) && is_object(json_decode($str))) ? true : false;
+ return is_string($str) && is_array(json_decode($str, true)) ? true : false;
}