👌 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:
parent
c571ca40d7
commit
6cf3ebb7db
@ -127,6 +127,7 @@ class Permissions {
|
|||||||
static public function FilledPerms($arr) {
|
static public function FilledPerms($arr) {
|
||||||
if(is_null($arr)) {
|
if(is_null($arr)) {
|
||||||
btlogger('FilledPerms: null');
|
btlogger('FilledPerms: null');
|
||||||
|
$arr = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$everything = self::Perms();
|
$everything = self::Perms();
|
||||||
|
Reference in New Issue
Block a user