phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: etemplate/inc class.boetemplate.inc.php,1.21,1.2


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.boetemplate.inc.php,1.21,1.22
Date: Sun, 29 Sep 2002 12:12:54 -0400

Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv6054

Modified Files:
        class.boetemplate.inc.php 
Log Message:
get rid of warning if try to read etemplate with empty name

Index: class.boetemplate.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.boetemplate.inc.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** class.boetemplate.inc.php   29 Sep 2002 08:50:18 -0000      1.21
--- class.boetemplate.inc.php   29 Sep 2002 16:12:52 -0000      1.22
***************
*** 541,544 ****
--- 541,548 ----
                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))
                        {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]