]> git.mxchange.org Git - friendica.git/commitdiff
Return data should be array
authorMichael <heluecht@pirati.ca>
Mon, 24 May 2021 05:22:25 +0000 (05:22 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 24 May 2021 05:22:25 +0000 (05:22 +0000)
src/Util/HTTPInputData.php

index 8886b61e4c54ce236fee96bd50438906ba66c9d4..7c90df5e1de70a01787c3edc8b3b388ead73ab9f 100644 (file)
@@ -60,7 +60,7 @@ class HTTPInputData
                // can be handled by built in PHP functionality
                $content = static::getPhpInputContent();
 
-               $variables = json_decode($content);
+               $variables = json_decode($content, true);
 
                if (empty($variables)) {
                        parse_str($content, $variables);