Commit 6cf3ebb7 authored by Klaus Weidenbach's avatar Klaus Weidenbach

👌 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().
parent c571ca40
......@@ -127,6 +127,7 @@ class Permissions {
static public function FilledPerms($arr) {
if(is_null($arr)) {
btlogger('FilledPerms: null');
$arr = [];
}
$everything = self::Perms();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment