diff --git a/etemplate/inc/class.etemplate_widget.inc.php b/etemplate/inc/class.etemplate_widget.inc.php index 33d44ef3e4..51b2db2b4e 100644 --- a/etemplate/inc/class.etemplate_widget.inc.php +++ b/etemplate/inc/class.etemplate_widget.inc.php @@ -495,6 +495,11 @@ class etemplate_widget { $name = self::get_array($cont,substr($name,1)); } + else + { + // Content not set expands to '' + $name = ''; + } } // RB: not sure why this business with entity encoding for square brakets, it messes up validation //$name = str_replace(array('[',']'),array('[',']'),$name);