Skip to content
Snippets Groups Projects
Commit b0e5dd20 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #3262 from greezybacon/issue/user-export

export: Fix crash exporting users
parents afd63e11 46dc3075
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment