mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
silenced warning: can not use scalar value as array in line 672
This commit is contained in:
parent
2809b52d4d
commit
194dd78deb
@ -179,7 +179,7 @@ class etemplate_widget
|
||||
{
|
||||
$this->attrs = array_merge($this->attrs,self::$request->modifications[$this->id]);
|
||||
}
|
||||
|
||||
|
||||
return $template;
|
||||
}
|
||||
|
||||
@ -664,8 +664,9 @@ class etemplate_widget
|
||||
$pos = &$arr;
|
||||
foreach($idxs as $idx)
|
||||
{
|
||||
if (!is_array($pos) && !$reference_into)
|
||||
if (!is_array($pos) && (!$reference_into || $reference_into && isset($pos)))
|
||||
{
|
||||
//if ($reference_into) error_log(__METHOD__."(".(strlen($s=array2string($arr))>512?substr($s,0,512).'...':$s).", '$idx', ".array2string($reference_into).", ".array2string($skip_empty).") ".function_backtrace());
|
||||
return False;
|
||||
}
|
||||
if($skip_empty && (!is_array($pos) || !isset($pos[$idx]))) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user