Permalink
Browse files

Return empty array instead of null

  • Loading branch information...
1 parent c8331e0 commit 5cc4f18470e38ac1abb6ac52ad48bf44603d490f @cdujeu cdujeu committed Oct 3, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/plugins/mq.sql/SqlMessageExchanger.php
@@ -192,7 +192,7 @@ public function consumeInstantChannel(ContextInterface $ctx, $channelName, $clie
{
$this->loadChannel($channelName);
if(!isSet(self::$channels) || !isSet(self::$channels[$channelName])) {
- return null;
+ return [];
}
// Check dead clients
if (is_array(self::$channels[$channelName]["CLIENTS"])) {

0 comments on commit 5cc4f18

Please sign in to comment.