mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
eliminate remaining empty() usages
This commit is contained in:
@@ -682,7 +682,7 @@ class NetworkSession{
|
||||
$lname = strtolower($command->getName());
|
||||
$aliases = $command->getAliases();
|
||||
$aliasObj = null;
|
||||
if(!empty($aliases)){
|
||||
if(count($aliases) > 0){
|
||||
if(!in_array($lname, $aliases, true)){
|
||||
//work around a client bug which makes the original name not show when aliases are used
|
||||
$aliases[] = $lname;
|
||||
|
Reference in New Issue
Block a user