👌 Fix a PHP warning in Permissions::FilledPerms().

When NULL is passed as parameter there is a PHP warning when testing
against it in the function in_array().
This commit is contained in:
Klaus Weidenbach
2017-11-10 21:28:35 +01:00
parent c571ca40d7
commit 6cf3ebb7db
+1
View File
@@ -127,6 +127,7 @@ class Permissions {
static public function FilledPerms($arr) {
if(is_null($arr)) {
btlogger('FilledPerms: null');
$arr = [];
}
$everything = self::Perms();