get rid of warning if try to read etemplate with empty name

This commit is contained in:
Ralf Becker 2002-09-29 16:12:52 +00:00
parent 26b6bb74b8
commit 23cb3a3fe6

View File

@ -540,6 +540,10 @@
*/
function read($name,$template='default',$lang='default',$group=0,$version='',$load_via='')
{
if (is_array($name) && empty($name['name']) || empty($name))
{
return False;
}
if (!$this->read_from_cache($name,$template,$lang,$group,$version))
{
if (!soetemplate::read($name,$template,$lang,$group,$version))