]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Merge pull request #4160 from annando/community
[friendica.git] / boot.php
index 3af6b764510c1bd16b90a3d92b18f0a3217f3d64..ba9d3bf496eec143a1e318ace39173f752eba21e 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -596,9 +596,6 @@ function defaults() {
        if (count($args) > 3) {
                throw new BadFunctionCallException('defaults() cannot use more than 3 parameters');
        }
-       if (count($args) === 3 && !is_array($args[0])) {
-               throw new BadFunctionCallException('defaults($arr, $key, $def) requires an array as first parameter');
-       }
        if (count($args) === 3 && is_null($args[1])) {
                throw new BadFunctionCallException('defaults($arr, $key, $def) $key is null');
        }