From: Tim Starling Date: Sun, 28 Sep 2008 04:20:49 +0000 (+0000) Subject: In wasDeletedSinceLastEdit(): fix odd string comparison method, there's an operator... X-Git-Tag: 1.31.0-rc.0~45053 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=8826c623ffaf631a04329587d08057031113d5a1;p=lhc%2Fweb%2Fwiklou.git In wasDeletedSinceLastEdit(): fix odd string comparison method, there's an operator for that --- 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; } }