mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
fixed isset_array using array_key_exists, to return also null values:
eg. $arr = array('x' => null); boetemplate::isset_array($arr,'x') returned false, as isset($arr['x']) === false, now it returns true like array_key_exists('x',$arr)
This commit is contained in:
parent
0aa9dffc1d
commit
6387f19cae
@ -581,7 +581,9 @@
|
||||
}
|
||||
$pos = &$pos[$idx];
|
||||
}
|
||||
return isset($pos[$last_idx]);
|
||||
// was return isset($pos[$last_idx]);
|
||||
// array_key_exists also returns true for keys with value null, which fixes some problems with autorepeating rows
|
||||
return is_array($pos) && array_key_exists($last_idx,$pos);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user