mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Replace disallowed operators in src/permission/
This commit is contained in:
parent
e986a0a4f2
commit
ae03c70dfc
@ -168,7 +168,7 @@ class BanEntry{
|
||||
}
|
||||
if(count($parts) > 0){
|
||||
$expire = trim(array_shift($parts));
|
||||
if($expire !== "" and strtolower($expire) !== "forever"){
|
||||
if($expire !== "" && strtolower($expire) !== "forever"){
|
||||
$entry->setExpires(self::parseDate($expire));
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ class PermissibleInternal implements Permissible{
|
||||
|
||||
$result = new PermissionAttachment($plugin);
|
||||
$this->attachments[spl_object_id($result)] = $result;
|
||||
if($name !== null and $value !== null){
|
||||
if($name !== null && $value !== null){
|
||||
$result->setPermission($name, $value);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user