jenkins-bot has submitted this change and it was merged.

Change subject: (bug 45591) Fix inconsistent function return type
......................................................................


(bug 45591) Fix inconsistent function return type

Change-Id: Iccc4acb2bb809d0f957d73d6e8a4da3033839c1e
---
M controller/NotificationController.php
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Reedy: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/controller/NotificationController.php 
b/controller/NotificationController.php
index 973c859..9acea57 100644
--- a/controller/NotificationController.php
+++ b/controller/NotificationController.php
@@ -132,10 +132,10 @@
                        return;
                }
 
-               // Check if the event object still has an enabled type.  The 
check is necessary because an extension could
-               // get turned off and we may still have un-processed event type 
in the queue
+               // Check if the event object has valid event type.  Events with 
invalid
+               // event types left in the job queue should not be processed
                if ( !$event->isEnabledEvent() ) {
-                       return false;
+                       return;
                }
 
                if ( $event->getType() == 'welcome' ) { // Welcome events 
should only be sent to the new user, no need for subscriptions.

-- 
To view, visit https://gerrit.wikimedia.org/r/51617
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iccc4acb2bb809d0f957d73d6e8a4da3033839c1e
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Bsitu <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to