[Fusionforge-commits] r12052 - branches/Branch_5_1/src/common/mail

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Jan 21 14:17:58 CET 2011


Author: lolando
Date: 2011-01-21 14:17:54 +0100 (Fri, 21 Jan 2011)
New Revision: 12052

Modified:
   branches/Branch_5_1/src/common/mail/MailingList.class.php
Log:
Merged from Evolvis: prevent a PHP fatal error if user can't be resolved

Modified: branches/Branch_5_1/src/common/mail/MailingList.class.php
===================================================================
--- branches/Branch_5_1/src/common/mail/MailingList.class.php	2011-01-21 10:29:20 UTC (rev 12051)
+++ branches/Branch_5_1/src/common/mail/MailingList.class.php	2011-01-21 13:17:54 UTC (rev 12052)
@@ -170,7 +170,7 @@
 		$this->fetchData($this->groupMailingListId);
 		
 		$user = &user_get_object($creator_id);
-		$userEmail = $user->getEmail();
+		$userEmail = $user ? $user->getEmail() : "";
 		if(empty($userEmail) || !validate_email($userEmail)) {
 			$this->setInvalidEmailError();
 			db_rollback();




More information about the Fusionforge-commits mailing list