]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Merge pull request #4165 from MrPetovan/bug/4163-null-profile
[friendica.git] / boot.php
index 73a1ef100741a1f829d3bc1e1840ab6dedcaeb33..8c3cd786f54dd5de79a074e143c528e77959aa0c 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -595,9 +595,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');
        }