From 194dd78deb21e20591bdc656897a9b6f0113b39e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 8 Feb 2013 08:54:20 +0000 Subject: [PATCH] silenced warning: can not use scalar value as array in line 672 --- etemplate/inc/class.etemplate_widget.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.etemplate_widget.inc.php b/etemplate/inc/class.etemplate_widget.inc.php index f2b9b375b3..142470de0f 100644 --- a/etemplate/inc/class.etemplate_widget.inc.php +++ b/etemplate/inc/class.etemplate_widget.inc.php @@ -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;