Browse Source

Fix return to use array instead of iterator see BT#14081

jmontoyaa 7 years ago
parent
commit
0cdf70ffcf
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/inc/lib/import.lib.php

+ 3 - 1
main/inc/lib/import.lib.php

@@ -59,7 +59,9 @@ class Import
                 }
             }*/
 
-            return $reader->fetchAssoc(0);
+            $iterator = $reader->fetchAssoc(0);
+
+            return iterator_to_array($iterator);
         }
         return [];
     }