From f2402f21226b87f7475d09d43aabdbfcbc0f3abb Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 27 Aug 2017 19:32:57 +0100 Subject: [PATCH] Strict-compare these to strings since they cannot return anything but --- src/pocketmine/command/defaults/VersionCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/command/defaults/VersionCommand.php b/src/pocketmine/command/defaults/VersionCommand.php index 257651765..7854c2eb2 100644 --- a/src/pocketmine/command/defaults/VersionCommand.php +++ b/src/pocketmine/command/defaults/VersionCommand.php @@ -86,11 +86,11 @@ class VersionCommand extends VanillaCommand{ $desc = $plugin->getDescription(); $sender->sendMessage(TextFormat::DARK_GREEN . $desc->getName() . TextFormat::WHITE . " version " . TextFormat::DARK_GREEN . $desc->getVersion()); - if($desc->getDescription() != null){ + if($desc->getDescription() !== ""){ $sender->sendMessage($desc->getDescription()); } - if($desc->getWebsite() != null){ + if($desc->getWebsite() !== ""){ $sender->sendMessage("Website: " . $desc->getWebsite()); }