From e50708615ce5c099ab5e95c78b04f96dd5d628b8 Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Fri, 1 Jul 2005 08:19:28 +0000 Subject: [PATCH] rev_timestamp is a string --- includes/SpecialContributions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index f566f37f07..ab0cb109b8 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -91,7 +91,7 @@ class contribs_finder { $use_index = $this->dbr->useIndexClause($index); $sql = "SELECT rev_timestamp FROM page, revision $use_index " . - "WHERE page_id = rev_page AND rev_timestamp > " . $this->offset . " AND " . + "WHERE page_id = rev_page AND rev_timestamp > '" . $this->offset . "' AND " . "rev_user_text = " . $this->dbr->addQuotes($this->username); $sql .= $this->get_namespace_cond(); $sql .= $this->get_minor_cond(); @@ -134,7 +134,7 @@ class contribs_finder { $limitQuery = "LIMIT {$this->limit}"; if ($this->offset) - $offsetQuery = "AND rev_timestamp < {$this->offset}"; + $offsetQuery = "AND rev_timestamp < '{$this->offset}'"; $use_index = $this->dbr->useIndexClause($index); $sql = "SELECT -- 2.20.1