From: Hypolite Petovan Date: Thu, 4 Jan 2018 02:24:09 +0000 (-0500) Subject: Remove too strict parameter check in defaults() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2a09af8bd05acc39b2f81795b5b57f99ae90431f;p=friendica.git Remove too strict parameter check in defaults() --- diff --git a/boot.php b/boot.php index 73a1ef1007..8c3cd786f5 100644 --- 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'); }