- Affected version
- 2.1.10 Patch 2
fnKeyExists
calls array_key_exists
without checking if $array
is an actual array.According to https://www.php.net/manual/en/function.array-key-exists.php
property_exists
should be used if $array
is an object. And some additional work is probably required if __get
or ArrayObject
support is desired.I'm fairly sure this function should return false if the
$array
argument is neither an array or an object. Or generate an error.
Last edited: