mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02:00
fix typo that prevented the referencing of sub elements in get_array in some cases
This commit is contained in:
parent
11411abef5
commit
064490bfef
@ -121,7 +121,6 @@ class boetemplate extends soetemplate
|
|||||||
// use expand_name to be able to use @ or $
|
// use expand_name to be able to use @ or $
|
||||||
$val = $this->expand_name($val,$c,$row,'','',$content);
|
$val = $this->expand_name($val,$c,$row,'','',$content);
|
||||||
$check_val = $this->expand_name($check_val,$c,$row,'','',$content);
|
$check_val = $this->expand_name($check_val,$c,$row,'','',$content);
|
||||||
|
|
||||||
$result = count($vals) == 1 ? $val != '' : ($check_val[0] == '/' ? preg_match($check_val,$val) : $val == $check_val);
|
$result = count($vals) == 1 ? $val != '' : ($check_val[0] == '/' ? preg_match($check_val,$val) : $val == $check_val);
|
||||||
if ($not) $result = !$result;
|
if ($not) $result = !$result;
|
||||||
//echo "<p>check_disabled: '".($not?'!':'')."$disabled' = '$val' ".(count($vals) == 1 ? '' : ($not?'!':'=')."= '$check_val'")." = ".($result?'True':'False')."</p>\n";
|
//echo "<p>check_disabled: '".($not?'!':'')."$disabled' = '$val' ".(count($vals) == 1 ? '' : ($not?'!':'=')."= '$check_val'")." = ".($result?'True':'False')."</p>\n";
|
||||||
@ -632,7 +631,7 @@ class boetemplate extends soetemplate
|
|||||||
$pos = &$arr;
|
$pos = &$arr;
|
||||||
foreach($idxs as $idx)
|
foreach($idxs as $idx)
|
||||||
{
|
{
|
||||||
if (!is_array($pos) && !$reference_info)
|
if (!is_array($pos) && !$reference_into)
|
||||||
{
|
{
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user