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

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Feb 11 21:50:31 CET 2011


Author: aljeux
Date: 2011-02-11 21:50:31 +0100 (Fri, 11 Feb 2011)
New Revision: 12279

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

Modified: trunk/src/www/tracker/include/ArtifactTypeHtml.class.php
===================================================================
--- trunk/src/www/tracker/include/ArtifactTypeHtml.class.php	2011-02-11 20:39:56 UTC (rev 12278)
+++ trunk/src/www/tracker/include/ArtifactTypeHtml.class.php	2011-02-11 20:50:31 UTC (rev 12279)
@@ -524,6 +524,8 @@
 			$text_100=_('None');
 		}
 		$arr = $this->getExtraFieldElements($extra_field_id);
+		$keys = array();
+		$vals = array();
 		for ($i=0; $i<count($arr); $i++) {
 			$keys[$i]=$arr[$i]['element_id'];
 			$vals[$i]=$arr[$i]['element_name'];
@@ -542,6 +544,8 @@
 	 */	
 	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);
+		$keys = array();
+		$vals = array();
 		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	2011-02-11 20:39:56 UTC (rev 12278)
+++ trunk/src/www/tracker/tracker.php	2011-02-11 20:50:31 UTC (rev 12279)
@@ -189,6 +189,7 @@
 			} else if ($ah->isError()) {
 				$feedback .= ' ID: '.$artifact_id_list[$i].'::'.$ah->getErrorMessage();
 			} else {
+				$_summary = '';
 				$_priority=(($priority != 100) ? $priority : $ah->getPriority());
 				$_status_id=(($status_id != 100) ? $status_id : $ah->getStatusID());
 				//yikes, we want the ability to mass-update to "un-assigned", which is the ID=100, which




More information about the Fusionforge-commits mailing list