Merge branch 'release/3.1' into release/3.2

This commit is contained in:
Dylan K. Taylor
2018-08-25 17:49:21 +01:00
6 changed files with 21 additions and 34 deletions

View File

@ -168,7 +168,7 @@ class BanEntry{
}
$expire = trim(array_shift($str));
if(strtolower($expire) !== "forever" and strlen($expire) > 0){
if($expire !== "" and strtolower($expire) !== "forever"){
$entry->setExpires(self::parseDate($expire));
}
if(empty($str)){