From 46dc3075598200c599411dba3d452eddaa9bcc3a Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 7 Jul 2016 19:30:39 -0500 Subject: [PATCH] export: Fix crash exporting users --- include/class.export.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/class.export.php b/include/class.export.php index d5d13a286..21e89bf80 100644 --- a/include/class.export.php +++ b/include/class.export.php @@ -278,6 +278,8 @@ class ResultSetExporter { $this->keys[] = $field; } $this->_res = $sql->getIterator(); + if ($this->_res instanceof IteratorAggregate) + $this->_res = $this->_res->getIterator(); $this->_res->rewind(); } -- GitLab