Avoid 'is no array' exception

This commit is contained in:
Nathan Gray 2012-05-08 23:17:43 +00:00
parent 9c3e4be52e
commit f3547273c7

View File

@ -487,11 +487,11 @@ class etemplate_widget
}
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));
}
else
elseif(is_array($cont))
{
$name = self::get_array($cont,substr($name,1));
}