From 4b05104bd73ba83e8b406e95673f6dd7b86a1b7b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 8 Oct 2002 00:06:14 +0000 Subject: [PATCH] small fix on load_via for boetemplate constructor --- etemplate/inc/class.boetemplate.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.boetemplate.inc.php b/etemplate/inc/class.boetemplate.inc.php index b56f0eb99f..7a5e763e73 100644 --- a/etemplate/inc/class.boetemplate.inc.php +++ b/etemplate/inc/class.boetemplate.inc.php @@ -67,9 +67,10 @@ { $tname = &$name['name']; } - $tname = (strstr($tname,'.') === False ? (is_array($load_via) ? $load_via['name'] : $load_via).'.':'').$tname; + $tname = (strstr($tname,'.') === False && !empty($tname) ? + (is_array($load_via) ? $load_via['name'] : $load_via).'.':'').$tname; - if (empty($name) || !$this->read($name,'','',0,'',$load_via)) + if (empty($tname) || !$this->read($name,'','',0,'',$load_via)) { $this->init($name); }