Replace unnecessary strlen > 0 calls with !== "" checks

This commit is contained in:
Dylan K. Taylor
2018-08-25 16:07:49 +01:00
parent 298259b473
commit 7dd53f2397
4 changed files with 6 additions and 6 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)){