mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Replace unnecessary strlen > 0 calls with !== "" checks
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user