[Fusionforge-commits] r10758 - in trunk/src/www/tracker: . admin include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Sep 28 18:22:21 CEST 2010


Author: aljeux
Date: 2010-09-28 18:22:21 +0200 (Tue, 28 Sep 2010)
New Revision: 10758

Modified:
   trunk/src/www/tracker/admin/ind.php
   trunk/src/www/tracker/include/ArtifactTypeHtml.class.php
   trunk/src/www/tracker/tracker.php
Log:
Fix php warnings

Modified: trunk/src/www/tracker/admin/ind.php
===================================================================
--- trunk/src/www/tracker/admin/ind.php	2010-09-28 16:22:12 UTC (rev 10757)
+++ trunk/src/www/tracker/admin/ind.php	2010-09-28 16:22:21 UTC (rev 10758)
@@ -64,7 +64,7 @@
 }
 
 // Only keep the Artifacts where the user has admin rights.
-$arr =& $atf->getArtifactTypes();
+$arr = $atf->getArtifactTypes();
 $i=0;
 for ($j = 0; $j < count($arr); $j++) {
 	if (forge_check_perm ('tracker', $arr[$j]->getID(), 'manager')) {

Modified: trunk/src/www/tracker/include/ArtifactTypeHtml.class.php
===================================================================
--- trunk/src/www/tracker/include/ArtifactTypeHtml.class.php	2010-09-28 16:22:12 UTC (rev 10757)
+++ trunk/src/www/tracker/include/ArtifactTypeHtml.class.php	2010-09-28 16:22:21 UTC (rev 10758)
@@ -185,7 +185,7 @@
 					if ($value == 100) {
 						$value = 'None';
 					} else {
-						$arr =& $this->getExtraFieldElements($efarr[$i]['extra_field_id']);
+						$arr = $this->getExtraFieldElements($efarr[$i]['extra_field_id']);
 						
 						// Convert the values (ids) to names in the ids order.
 						$new = array();
@@ -503,7 +503,7 @@
 	 *	@return		radio buttons
 	 */	
 	function renderRadio ($extra_field_id,$checked='xzxz',$show_100=false,$text_100='none',$show_any=false,$text_any='Any') {
-		$arr =& $this->getExtraFieldElements($extra_field_id);
+		$arr = $this->getExtraFieldElements($extra_field_id);
 		for ($i=0; $i<count($arr); $i++) {
 			$keys[$i]=$arr[$i]['element_id'];
 			$vals[$i]=$arr[$i]['element_name'];
@@ -527,7 +527,8 @@
 		if (!$checked || !is_array($checked)) {
 			$checked=array();
 		}
-		$arr =& $this->getExtraFieldElements($extra_field_id);
+		$arr = $this->getExtraFieldElements($extra_field_id);
+		$return = '';
 		if ($show_100) {
 			$return .= '
 				<input type="checkbox" name="extra_fields['.$extra_field_id.'][]" value="100" '.
@@ -589,7 +590,7 @@
 	 *	@return		text area and data.
 	 */	
 	function renderRelationField ($extra_field_id,$contents,$size,$maxlength) {
-		$arr =& $this->getExtraFieldElements($extra_field_id);
+		$arr = $this->getExtraFieldElements($extra_field_id);
 		for ($i=0; $i<count($arr); $i++) {
 			$keys[$i]=$arr[$i]['element_id'];
 			$vals[$i]=$arr[$i]['element_name'];

Modified: trunk/src/www/tracker/tracker.php
===================================================================
--- trunk/src/www/tracker/tracker.php	2010-09-28 16:22:12 UTC (rev 10757)
+++ trunk/src/www/tracker/tracker.php	2010-09-28 16:22:21 UTC (rev 10758)
@@ -172,6 +172,7 @@
 		$assigned_to = getStringFromRequest('assigned_to');
 		$canned_response = getIntFromRequest("canned_response");
 		$extra_fields = getArrayFromRequest('extra_fields');
+		$was_error=false;
 
 		$count=count($artifact_id_list);
 




More information about the Fusionforge-commits mailing list