diff --git a/phpBB/phpbb/json_sanitizer.php b/phpBB/phpbb/json_sanitizer.php index 157502624f..8d6937e630 100644 --- a/phpBB/phpbb/json_sanitizer.php +++ b/phpBB/phpbb/json_sanitizer.php @@ -50,6 +50,7 @@ class json_sanitizer */ static public function decode($json) { - return self::sanitize(json_decode($json, true)); + $data = json_decode($json, true); + return !empty($data) ? self::sanitize($data) : []; } }