[evolvis-commits] r17819: [#1834] Nobody ever bothered to check the RSS output of this widget

mirabilos at evolvis.org mirabilos at evolvis.org
Wed Dec 7 22:08:48 CET 2011


Author: mirabilos
Date: 2011-12-07 22:08:47 +0100 (Wed, 07 Dec 2011)
New Revision: 17819

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/widget/Widget_MyProjects.class.php
Log:
[#1834] Nobody ever bothered to check the RSS output of this widget


Modified: trunk/gforge_base/evolvisforge-5.1/src/common/widget/Widget_MyProjects.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/widget/Widget_MyProjects.class.php	2011-12-07 21:08:42 UTC (rev 17818)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/widget/Widget_MyProjects.class.php	2011-12-07 21:08:47 UTC (rev 17819)
@@ -117,7 +117,7 @@
 	    $projects = UserManager::instance()->getCurrentUser()->getGroups() ;
 	    sortProjectList ($projects) ;
 
-	    if (!$result || $rows < 1) {
+	    if (count($projects) < 1) {
 		    $rss->addItem(array(
 					  'title'       => 'Error',
 					  'description' => _("You're not a member of any project") . db_error(),
@@ -147,6 +147,7 @@
 					  'link'        => $url)
 			    );
 	    }
+	    $rss->display();
     }
 
     function getDescription() {



More information about the evolvis-commits mailing list