[evolvis-commits] r18247: php warning cleanup upon group permanent deletion

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Apr 5 23:01:57 CEST 2012


Author: mirabilos
Date: 2012-04-05 23:01:56 +0200 (Thu, 05 Apr 2012)
New Revision: 18247

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php
Log:
php warning cleanup upon group permanent deletion


Modified: trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php	2012-04-05 21:01:52 UTC (rev 18246)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php	2012-04-05 21:01:56 UTC (rev 18247)
@@ -1675,7 +1675,7 @@
 		//
 		//	Remove all the members
 		//
-		$members =& $this->getMembers();
+		$members = $this->getMembers();
 		foreach ($members as $i) {
 			$this->removeUser($i->getID());
 		}
@@ -1847,7 +1847,7 @@
 		//
 		$sqf = new SurveyQuestionFactory($this);
 		$sq_arr =& $sqf->getSurveyQuestions();
-		foreach ($sq_arr as $i) {
+		if ($sq_arr) foreach ($sq_arr as $i) {
 			if (!is_object($i)) {
 				continue;
 			}



More information about the evolvis-commits mailing list