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

@ -177,7 +177,7 @@ class RCONInstance extends Thread{
$disconnect[$id] = $sock;
break;
}
if(strlen($payload) > 0){
if($payload !== ""){
$this->cmd = ltrim($payload);
$this->synchronized(function(){
$this->notifier->wakeupSleeper();