[Fusionforge-commits] r10519 - in trunk/src/common: include widget

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Thu Sep 16 21:22:46 CEST 2010


Author: nerville
Date: 2010-09-16 21:22:46 +0200 (Thu, 16 Sep 2010)
New Revision: 10519

Modified:
   trunk/src/common/include/Group.class.php
   trunk/src/common/include/Role.class.php
   trunk/src/common/widget/Widget_MyArtifacts.class.php
   trunk/src/common/widget/Widget_MyMonitoredForums.class.php
Log:
fix php warning

Modified: trunk/src/common/include/Group.class.php
===================================================================
--- trunk/src/common/include/Group.class.php	2010-09-16 19:19:40 UTC (rev 10518)
+++ trunk/src/common/include/Group.class.php	2010-09-16 19:22:46 UTC (rev 10519)
@@ -2496,18 +2496,18 @@
 		if (USE_PFO_RBAC) {
 			$res = db_query_params ('SELECT role_id FROM pfo_role WHERE home_group_id=$1',
 						array ($this->getID()));
-			while ($arr =& db_fetch_array($res)) {
+			while ($arr = db_fetch_array($res)) {
 				$role_ids[] = $arr['role_id'] ;
 			}
 			$res = db_query_params ('SELECT role_id FROM role_project_refs WHERE group_id=$1',
 						array ($this->getID()));
-			while ($arr =& db_fetch_array($res)) {
+			while ($arr = db_fetch_array($res)) {
 				$role_ids[] = $arr['role_id'] ;
 			}
 		} else {
 			$res = db_query_params ('SELECT role_id FROM role WHERE group_id=$1',
 							    array ($this->getID()));
-			while ($arr =& db_fetch_array($res)) {
+			while ($arr = db_fetch_array($res)) {
 				$role_ids[] = $arr['role_id'] ;
 			}
 		}

Modified: trunk/src/common/include/Role.class.php
===================================================================
--- trunk/src/common/include/Role.class.php	2010-09-16 19:19:40 UTC (rev 10518)
+++ trunk/src/common/include/Role.class.php	2010-09-16 19:22:46 UTC (rev 10519)
@@ -137,7 +137,7 @@
 				       array ($this->getID()));
 		
 	
-		while ($arr =& db_fetch_array($res)) {
+		while ($arr = db_fetch_array($res)) {
 			$result[] = group_get_object ($arr['group_id']) ;
 		}
 		return $result ;

Modified: trunk/src/common/widget/Widget_MyArtifacts.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyArtifacts.class.php	2010-09-16 19:19:40 UTC (rev 10518)
+++ trunk/src/common/widget/Widget_MyArtifacts.class.php	2010-09-16 19:22:46 UTC (rev 10519)
@@ -87,7 +87,7 @@
 	}
 	function getContent() {
 		$html_my_artifacts = '<table style="width:100%">';
-		$atf = new ArtifactsForUser(UserManager::instance()->getCurrentUser());
+		$atf = new ArtifactsForUser(@UserManager::instance()->getCurrentUser());
 		$assigned = $atf->getAssignedArtifactsByGroup();
 		$submitted = $atf->getSubmittedArtifactsByGroup();
 		$all = $atf->getArtifactsFromSQLWithParams('SELECT * FROM artifact_vw av where (av.submitted_by=$1 OR  av.assigned_to=$1) AND av.status_id=1 ORDER BY av.group_artifact_id, av.artifact_id DESC',array( UserManager::instance()->getCurrentUser()->getID()));
@@ -228,7 +228,7 @@
 							$group_id.'&aid='.$aid.'&atid='.$atid.
 							'">'. stripslashes($summary).'</A></TD>'.
 							'<TD class="small">';
-						$html .= '&nbsp;'.$AS_flag.'</TD>'.$percent_complete.'</TR>';
+						$html .= '&nbsp;'.$AS_flag.'</TD></TR>';
 
 					}
 				}

Modified: trunk/src/common/widget/Widget_MyMonitoredForums.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyMonitoredForums.class.php	2010-09-16 19:19:40 UTC (rev 10518)
+++ trunk/src/common/widget/Widget_MyMonitoredForums.class.php	2010-09-16 19:22:46 UTC (rev 10519)
@@ -42,8 +42,8 @@
             "AND forum_group_list.is_public <> 9 ".
              "AND forum_group_list.group_forum_id=forum_monitored_forums.forum_id ".
              "AND forum_monitored_forums.user_id=$1 ";
-        $um =& UserManager::instance();
-        $current_user =& $um->getCurrentUser();
+        $um = UserManager::instance();
+        $current_user = $um->getCurrentUser();
         if ($current_user->getStatus()=='S') {
             $projects = $current_user->getProjects();
             $sql .= "AND groups.group_id IN (". implode(',', $projects) .") ";




More information about the Fusionforge-commits mailing list