mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
Permission: loadPermission() never returns null
This commit is contained in:
parent
ac4f00be81
commit
2f325b8c91
@ -115,9 +115,7 @@ class Permission{
|
|||||||
if(is_array($data["children"])){
|
if(is_array($data["children"])){
|
||||||
foreach($data["children"] as $k => $v){
|
foreach($data["children"] as $k => $v){
|
||||||
if(is_array($v)){
|
if(is_array($v)){
|
||||||
if(($perm = self::loadPermission($k, $v, $default, $output)) !== null){
|
$output[] = self::loadPermission($k, $v, $default, $output);
|
||||||
$output[] = $perm;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$children[$k] = true;
|
$children[$k] = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user