mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 13:58:40 +01:00
Avoid 'is no array' exception
This commit is contained in:
parent
9c3e4be52e
commit
f3547273c7
@ -487,11 +487,11 @@ class etemplate_widget
|
|||||||
}
|
}
|
||||||
if ($is_index_in_content)
|
if ($is_index_in_content)
|
||||||
{
|
{
|
||||||
if ($name[1] == '@')
|
if ($name[1] == '@' && is_array(self::$request->content))
|
||||||
{
|
{
|
||||||
$name = self::get_array(self::$request->content,substr($name,2));
|
$name = self::get_array(self::$request->content,substr($name,2));
|
||||||
}
|
}
|
||||||
else
|
elseif(is_array($cont))
|
||||||
{
|
{
|
||||||
$name = self::get_array($cont,substr($name,1));
|
$name = self::get_array($cont,substr($name,1));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user