Skip to content

Commit

Permalink
export: Fix crash exporting users
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Hancock committed Jul 8, 2016
1 parent 907ec36 commit 46dc307
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/class.export.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ function __construct($sql, $headers, $options=array()) {
$this->keys[] = $field;
}
$this->_res = $sql->getIterator();
if ($this->_res instanceof IteratorAggregate)
$this->_res = $this->_res->getIterator();
$this->_res->rewind();
}

Expand Down

0 comments on commit 46dc307

Please sign in to comment.