X-Git-Url: https://reisub.nsupdate.info/git/?p=friendica-addons.git%2F.git;a=blobdiff_plain;f=blockbot%2Fvendor%2Fcomposer%2FClassLoader.php;fp=blockbot%2Fvendor%2Fcomposer%2FClassLoader.php;h=03b9bb9c40cb86c2c2bbec2ce6ff0ddce9ad586c;hp=95f7e0978bad11efb1f75f5049b0c2ac7ae1939b;hb=e0165b39bd9f1a105f28e17e75656ce88c5139ba;hpb=efdbab5100af7b5809ddc72319c32f3799adf1fa diff --git a/blockbot/vendor/composer/ClassLoader.php b/blockbot/vendor/composer/ClassLoader.php index 95f7e097..03b9bb9c 100644 --- a/blockbot/vendor/composer/ClassLoader.php +++ b/blockbot/vendor/composer/ClassLoader.php @@ -60,7 +60,7 @@ class ClassLoader public function getPrefixes() { if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', $this->prefixesPsr0); + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); } return array(); @@ -279,7 +279,7 @@ class ClassLoader */ public function setApcuPrefix($apcuPrefix) { - $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; } /**