|
@@ -94,7 +94,7 @@ function zimbraSingleGetAccess()
|
|
|
function recursiveFindAll($haystack, $needle)
|
|
function recursiveFindAll($haystack, $needle)
|
|
|
{
|
|
{
|
|
|
$values = array();
|
|
$values = array();
|
|
|
- $iterator = new RecursiveArrayIterator($haystack);
|
|
|
|
|
|
|
+ $iterator = new RecursiveArrayIterator((array)$haystack);
|
|
|
$recursive = new RecursiveIteratorIterator(
|
|
$recursive = new RecursiveIteratorIterator(
|
|
|
$iterator,
|
|
$iterator,
|
|
|
RecursiveIteratorIterator::SELF_FIRST
|
|
RecursiveIteratorIterator::SELF_FIRST
|