From: Domas Mituzas Date: Thu, 15 Feb 2007 15:38:28 +0000 (+0000) Subject: Add ResultSet::rewind() X-Git-Tag: 1.31.0-rc.0~54040 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=6bd82dc0dbda568fef6b94c24652f5d969c38a1f;p=lhc%2Fweb%2Fwiklou.git Add ResultSet::rewind() --- diff --git a/includes/Database.php b/includes/Database.php index 5ad073d3e3..d295580834 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -2116,6 +2116,12 @@ class ResultWrapper { function seek( $row ) { $this->db->dataSeek( $this->result, $row ); } + + function rewind() { + if ($this->numRows()) { + $this->db->dataSeek($this->result, 0); + } + } }