small fix on load_via for boetemplate constructor

This commit is contained in:
Ralf Becker 2002-10-08 00:06:14 +00:00
parent 270920c5c4
commit 4b05104bd7

View File

@ -67,9 +67,10 @@
{ {
$tname = &$name['name']; $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); $this->init($name);
} }