[evolvis-commits] r17691: fix php warning

mirabilos at evolvis.org mirabilos at evolvis.org
Wed Nov 2 17:07:09 CET 2011


Author: mirabilos
Date: 2011-11-02 17:07:09 +0100 (Wed, 02 Nov 2011)
New Revision: 17691

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php
Log:
fix php warning


Modified: trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php	2011-11-02 14:40:12 UTC (rev 17690)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php	2011-11-02 16:07:09 UTC (rev 17691)
@@ -491,7 +491,8 @@
 		if ($this->usesCustomStatuses()) {
 			//get the selected element for the extra_field_status element
 			$csfield = $this->getCustomStatusField();
-			if (array_key_exists($csfield, $extra_fields)) {
+			if (is_array($extra_fields) &&
+			    array_key_exists($csfield, $extra_fields)) {
 				$element_id=$extra_fields[$csfield];
 
 				//convert that element_id into the status_id



More information about the evolvis-commits mailing list