mirror of
https://github.com/friendica/friendica
synced 2024-11-19 11:03:40 +00:00
Merge pull request #4165 from MrPetovan/bug/4163-null-profile
Remove too strict parameter check in defaults()
This commit is contained in:
commit
00d369a65d
1 changed files with 0 additions and 3 deletions
3
boot.php
3
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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue