From 6bd82dc0dbda568fef6b94c24652f5d969c38a1f Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Thu, 15 Feb 2007 15:38:28 +0000 Subject: [PATCH] Add ResultSet::rewind() --- includes/Database.php | 6 ++++++ 1 file changed, 6 insertions(+) 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); + } + } } -- 2.20.1