mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-01 07:43:03 +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){
|
if(count($parts) > 0){
|
||||||
$expire = trim(array_shift($parts));
|
$expire = trim(array_shift($parts));
|
||||||
if($expire !== "" and strtolower($expire) !== "forever"){
|
if($expire !== "" && strtolower($expire) !== "forever"){
|
||||||
$entry->setExpires(self::parseDate($expire));
|
$entry->setExpires(self::parseDate($expire));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ class PermissibleInternal implements Permissible{
|
|||||||
|
|
||||||
$result = new PermissionAttachment($plugin);
|
$result = new PermissionAttachment($plugin);
|
||||||
$this->attachments[spl_object_id($result)] = $result;
|
$this->attachments[spl_object_id($result)] = $result;
|
||||||
if($name !== null and $value !== null){
|
if($name !== null && $value !== null){
|
||||||
$result->setPermission($name, $value);
|
$result->setPermission($name, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user