diff --git a/src/infrastructure/daemon/irc/handler/macro/PhabricatorIRCMacroHandler.php b/src/infrastructure/daemon/irc/handler/macro/PhabricatorIRCMacroHandler.php index 78a2d78723..f5008689f0 100644 --- a/src/infrastructure/daemon/irc/handler/macro/PhabricatorIRCMacroHandler.php +++ b/src/infrastructure/daemon/irc/handler/macro/PhabricatorIRCMacroHandler.php @@ -39,8 +39,8 @@ final class PhabricatorIRCMacroHandler extends PhabricatorIRCHandler { $macros = $this->getConduit()->callMethodSynchronous( 'macro.query', array()); - // gotta bail if we failed to fetch the macros - if ($macros === null) { + // bail if we have no macros + if (empty($macros)) { return false; } $this->macros = $macros;