[Fusionforge-commits] r11700 - trunk/src/plugins/mailman/include

Christian Bayle cbayle at libremir.placard.fr.eu.org
Fri Dec 3 17:28:01 CET 2010


Author: cbayle
Date: 2010-12-03 17:28:00 +0100 (Fri, 03 Dec 2010)
New Revision: 11700

Modified:
   trunk/src/plugins/mailman/include/MailmanList.class.php
Log:
Fix event detection


Modified: trunk/src/plugins/mailman/include/MailmanList.class.php
===================================================================
--- trunk/src/plugins/mailman/include/MailmanList.class.php	2010-12-03 14:59:23 UTC (rev 11699)
+++ trunk/src/plugins/mailman/include/MailmanList.class.php	2010-12-03 16:28:00 UTC (rev 11700)
@@ -194,8 +194,9 @@
 	function activationRequested()
 	{
 		$systemevent =	SystemEventManager::instance();
-		$result = $systemevent->fetchEvents(0,10,false,array(SystemEvent::STATUS_NEW,SystemEvent::STATUS_RUNNING),array('MAILMAN_LIST_CREATE'),$this->getID());
-		if(count($result)<1) {
+		$result1 = $systemevent->fetchEvents(0,10,false,SystemEvent::STATUS_NEW,'MAILMAN_LIST_CREATE',$this->getID());
+		$result2 = $systemevent->fetchEvents(0,10,false,SystemEvent::STATUS_RUNNING,'MAILMAN_LIST_CREATE',$this->getID());
+		if(count($result1)+count($result2)<1) {
 			return false;
 		}
 		else {




More information about the Fusionforge-commits mailing list