mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
get rid of warning if try to read etemplate with empty name
This commit is contained in:
parent
26b6bb74b8
commit
23cb3a3fe6
@ -540,6 +540,10 @@
|
|||||||
*/
|
*/
|
||||||
function read($name,$template='default',$lang='default',$group=0,$version='',$load_via='')
|
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 (!$this->read_from_cache($name,$template,$lang,$group,$version))
|
||||||
{
|
{
|
||||||
if (!soetemplate::read($name,$template,$lang,$group,$version))
|
if (!soetemplate::read($name,$template,$lang,$group,$version))
|
||||||
|
Loading…
Reference in New Issue
Block a user