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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jul 1 10:28:22 EDT 2009


Author: christoph
Date: 2009-07-01 10:28:22 -0400 (Wed, 01 Jul 2009)
New Revision: 4268

Modified:
   trunk/mapbender/http/classes/class_element.php
Log:


Modified: trunk/mapbender/http/classes/class_element.php
===================================================================
--- trunk/mapbender/http/classes/class_element.php	2009-07-01 09:58:49 UTC (rev 4267)
+++ trunk/mapbender/http/classes/class_element.php	2009-07-01 14:28:22 UTC (rev 4268)
@@ -127,6 +127,10 @@
 
 	private function getHtmlOpenTag () {
 		$openTag = "";
+		
+		if (!$this->element) {
+			return "";
+		}
 	
 		if ($this->id) {
 			// tag name
@@ -222,7 +226,7 @@
 	
 	private function getHtmlContent () {
 		$htmlContent = "";
-		if ($this->content != "") {
+		if ($this->content != "" && $this->element) {
 			$htmlContent .= stripslashes($this->content);
 		}
 		return $htmlContent;



More information about the Mapbender_commits mailing list