From 23cb3a3fe6725838cf14e97f2e2c8769651cff64 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 29 Sep 2002 16:12:52 +0000 Subject: [PATCH] get rid of warning if try to read etemplate with empty name --- etemplate/inc/class.boetemplate.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etemplate/inc/class.boetemplate.inc.php b/etemplate/inc/class.boetemplate.inc.php index 732e1ffbb9..97f0bcaca3 100644 --- a/etemplate/inc/class.boetemplate.inc.php +++ b/etemplate/inc/class.boetemplate.inc.php @@ -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))