diff --git a/etemplate/inc/class.etemplate_widget_template.inc.php b/etemplate/inc/class.etemplate_widget_template.inc.php index 94d05c3adc..ab07b9b5b2 100644 --- a/etemplate/inc/class.etemplate_widget_template.inc.php +++ b/etemplate/inc/class.etemplate_widget_template.inc.php @@ -76,9 +76,9 @@ class etemplate_widget_template extends etemplate_widget if (is_array(self::$request->content)) { $expand_name = self::expand_name($name, '','','','',self::$cont); - if($expand_name && $expand_name != $name) + if ($expand_name && $expand_name != $name && + ($template = self::instance($expand_name, $template_set, $version, $load_via))) { - $template = self::instance($expand_name, $template_set, $version, $load_via); // Remember original, un-expanded name in case content changes while still cached $template->original_name = $name; return $template;