Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
3.10.0rc1, 3.9.3, 4.0.0trunk
-
None
Description
On line 396:
if (count($requestedProperties) == 0) ...
but, as per the code invoking the function, requestedProperties might be also TRUE or FALSE, which give a count() = 1. A few warnings are generated later on, when it is assumed that requestedProperties is an array.
Fix:
if (!is_array($requestedProperties) || count($requestedProperties) == 0)