[Mapbender-commits] r10168 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Jun 30 23:34:02 PDT 2019


Author: armin11
Date: 2019-06-30 23:34:02 -0700 (Sun, 30 Jun 2019)
New Revision: 10168

Modified:
   trunk/mapbender/http/classes/class_iso19139.php
Log:
Fix for empty preview elements

Modified: trunk/mapbender/http/classes/class_iso19139.php
===================================================================
--- trunk/mapbender/http/classes/class_iso19139.php	2019-06-28 10:13:49 UTC (rev 10167)
+++ trunk/mapbender/http/classes/class_iso19139.php	2019-07-01 06:34:02 UTC (rev 10168)
@@ -917,11 +917,13 @@
 			foreach ($hashIndices as $index) {
 				$html .= $this->getHtmlRow($t_a, $t_b, $t_c, $iso19139Hash, $index);
 			}
-			if ($iso19139Hash[36]['value'] != "") {
+			if (isset($iso19139Hash[36]['value']) && $iso19139Hash[36]['value'] != "") {
 				if (is_array($iso19139Hash[36]['value'])) {
 					$iso19139Hash[36]['value'] = $iso19139Hash[36]['value'][0];
 				}
-				$html .= $t_a."<b>".$iso19139Hash[36]['html']."</b>: ".$t_b."<img width=120 height=120 src = '".$iso19139Hash[36]['value']."'>".$t_c;//preview
+				if (!is_null($iso19139Hash[36]['value'])) {
+					$html .= $t_a."<b>".$iso19139Hash[36]['html']."</b>: ".$t_b."<img width=120 height=120 src = '".$iso19139Hash[36]['value']."'>".$t_c;//preview
+				}
 			}
 			//resource identifier
 			if ($iso19139Hash[37]['value'] != "") {



More information about the Mapbender_commits mailing list