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:
Ralf Becker 2007-01-08 15:57:09 +00:00
parent 0aa9dffc1d
commit 6387f19cae

View File

@ -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);
}
/**