We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1da5cc commit 674d8e9Copy full SHA for 674d8e9
library/Zend/Json.php
@@ -73,6 +73,9 @@ class Zend_Json
73
*/
74
public static function decode($encodedValue, $objectDecodeType = Zend_Json::TYPE_ARRAY)
75
{
76
+ if (in_array($encodedValue, array(null, ''))) {
77
+ return null;
78
+ }
79
$encodedValue = (string) $encodedValue;
80
if (function_exists('json_decode') && self::$useBuiltinEncoderDecoder !== true) {
81
$decode = json_decode($encodedValue, $objectDecodeType);
0 commit comments