diff --git a/etemplate/inc/class.soetemplate.inc.php b/etemplate/inc/class.soetemplate.inc.php index d7556da400..0329de16a8 100644 --- a/etemplate/inc/class.soetemplate.inc.php +++ b/etemplate/inc/class.soetemplate.inc.php @@ -227,7 +227,7 @@ } $file .= '.xul'; - if (!is_readable($file) || !($f = fopen($file,'r'))) + if ($this->name == '' || $app == '' || $name == '' || !is_readable($file) || !($f = fopen($file,'r'))) { //echo "
Can't open '$file' !!!
\n"; return False;