From 8826c623ffaf631a04329587d08057031113d5a1 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 28 Sep 2008 04:20:49 +0000 Subject: [PATCH] In wasDeletedSinceLastEdit(): fix odd string comparison method, there's an operator for that --- includes/EditPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 7e8533e5ec..13c9a29230 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -326,8 +326,8 @@ class EditPage { if ( $this->mTitle->isDeleted() ) { $this->lastDelete = $this->getLastDelete(); if ( $this->lastDelete ) { - $deletetime = wfTimestamp( TS_MW, $this->lastDelete->log_timestamp ); - if ( ($deletetime - $this->starttime) > 0 ) { + $deleteTime = wfTimestamp( TS_MW, $this->lastDelete->log_timestamp ); + if ( $deleteTime > $this->starttime ) { $this->deletedSinceEdit = true; } } -- 2.20.1