[evolvis-commits] r12184: Cleanup notices (illegal return by reference on a constant) ↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 18:43:56 CET 2011


Author: mirabilos
Date: 2011-02-24 18:43:56 +0100 (Thu, 24 Feb 2011)
New Revision: 12184

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/ForumFactory.class.php
Log:
Cleanup notices (illegal return by reference on a constant)


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/ForumFactory.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/ForumFactory.class.php	2011-02-24 17:43:54 UTC (rev 12183)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/forum/ForumFactory.class.php	2011-02-24 17:43:56 UTC (rev 12184)
@@ -144,8 +144,8 @@
 		$rows = db_numrows($result);
 
 		if (!$result) {
-			$this->setError(_('Forum not found').db_error());
-			return false;
+			$this->setError(_('Forum not found').' : '.db_error());
+			$this->forums = false;
 		} else {
 			while ($arr = db_fetch_array($result)) {
 				$this->forums[] = new Forum($this->Group, $arr['group_forum_id'], $arr);



More information about the evolvis-commits mailing list