make sure the optimisations are reliable
This commit is contained in:
parent
ed16660867
commit
63423c8ee1
@ -2050,7 +2050,7 @@ function ids_to_array($arr,$idx = 'id') {
|
||||
$t = array();
|
||||
if($arr) {
|
||||
foreach($arr as $x) {
|
||||
if(strlen($x[$idx]) && (! in_array($x[$idx],$t))) {
|
||||
if(array_key_exists($idx,$x) && strlen($x[$idx]) && (! in_array($x[$idx],$t))) {
|
||||
$t[] = $x[$idx];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user