andre 5 years ago
parent
commit
36d15e0fc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      zimbraSingle.php

+ 1 - 1
zimbraSingle.php

@@ -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