[Fusionforge-commits] r12275 - branches/Branch_5_1/src/common/tracker

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


Author: aljeux
Date: 2011-02-11 21:30:11 +0100 (Fri, 11 Feb 2011)
New Revision: 12275

Modified:
   branches/Branch_5_1/src/common/tracker/Artifact.class.php
Log:
Fix php warning in Artifact

Modified: branches/Branch_5_1/src/common/tracker/Artifact.class.php
===================================================================
--- branches/Branch_5_1/src/common/tracker/Artifact.class.php	2011-02-11 20:30:06 UTC (rev 12274)
+++ branches/Branch_5_1/src/common/tracker/Artifact.class.php	2011-02-11 20:30:11 UTC (rev 12275)
@@ -1468,7 +1468,7 @@
 				$type=$ef[$arr['extra_field_id']]['field_type'];
 				if (($type == ARTIFACT_EXTRAFIELDTYPE_CHECKBOX) || ($type==ARTIFACT_EXTRAFIELDTYPE_MULTISELECT)) {
 					//accumulate a sub-array of values in cases where you may have multiple rows
-					if (!is_array($this->extra_field_data[$arr['extra_field_id']])) {
+					if (!array_key_exists($arr['extra_field_id'], $this->extra_field_data) || !is_array($this->extra_field_data[$arr['extra_field_id']])) {
 						$this->extra_field_data[$arr['extra_field_id']] = array();
 					}
 					$this->extra_field_data[$arr['extra_field_id']][]=$arr['field_data'];




More information about the Fusionforge-commits mailing list