fix: etemplate does not like my previous patch, don't know why :-(

This commit is contained in:
Cornelius Weiß 2006-10-10 18:03:27 +00:00
parent 4648c5025e
commit d0a7a9aaf4
2 changed files with 4 additions and 3 deletions

View File

@ -618,9 +618,10 @@
* @param array $arr the array to search, referenz as a referenz gets returned * @param array $arr the array to search, referenz as a referenz gets returned
* @param string $idx the index, may contain sub-indices like a[b], see example below * @param string $idx the index, may contain sub-indices like a[b], see example below
* @param boolean $reference_into default False, if True none-existing sub-arrays/-indices get created to be returned as referenz, else False is returned * @param boolean $reference_into default False, if True none-existing sub-arrays/-indices get created to be returned as referenz, else False is returned
* @param bool $skip_empty returns false if $idx is not present in $arr
* @return mixed reference to $arr[$idx] or false if $idx is not set and not $reference_into * @return mixed reference to $arr[$idx] or false if $idx is not set and not $reference_into
*/ */
function &get_array(&$arr,$idx,$reference_into=False) function &get_array(&$arr,$idx,$reference_into=False,$skip_empty=False)
{ {
if (!is_array($arr)) if (!is_array($arr))
{ {
@ -634,7 +635,7 @@
{ {
return False; return False;
} }
if(!isset($pos[$idx])) return false; if($skip_empty && !isset($pos[$idx])) return false;
$pos = &$pos[$idx]; $pos = &$pos[$idx];
} }
return $pos; return $pos;

View File

@ -1676,7 +1676,7 @@
{ {
$attr = array(); $attr = array();
} }
$value = $this->get_array($content_in,$form_name,True); $value = $this->get_array($content_in,$form_name,True,$GLOBALS['egw_info']['flags']['currentapp'] == 'etemplate' ? false : true );
if($value === false) continue; if($value === false) continue;
if (isset($attr['blur']) && $attr['blur'] == $value) if (isset($attr['blur']) && $attr['blur'] == $value)