From: Aaron Schulz Date: Fri, 28 Mar 2008 00:32:48 +0000 (+0000) Subject: Timestamp should be matched X-Git-Tag: 1.31.0-rc.0~48760 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=8b045ad6f64e08e92445755acd1dfd94062a2e35;p=lhc%2Fweb%2Fwiklou.git Timestamp should be matched --- diff --git a/includes/filerepo/OldLocalFile.php b/includes/filerepo/OldLocalFile.php index ea6b1d0f12..581bce4680 100644 --- a/includes/filerepo/OldLocalFile.php +++ b/includes/filerepo/OldLocalFile.php @@ -89,7 +89,7 @@ class OldLocalFile extends LocalFile { } else { krsort( $oldImages ); foreach ( $oldImages as $timestamp => $info ) { - if ( $timestamp <= $this->requestedTime ) { + if ( $timestamp == $this->requestedTime ) { $found = true; break; } @@ -168,7 +168,7 @@ class OldLocalFile extends LocalFile { if ( is_null( $this->requestedTime ) ) { $conds['oi_archive_name'] = $this->archive_name; } else { - $conds[] = 'oi_timestamp <= ' . $dbr->addQuotes( $dbr->timestamp( $this->requestedTime ) ); + $conds[] = 'oi_timestamp = ' . $dbr->addQuotes( $dbr->timestamp( $this->requestedTime ) ); } $row = $dbr->selectRow( 'oldimage', $this->getCacheFields( 'oi_' ), $conds, __METHOD__, array( 'ORDER BY' => 'oi_timestamp DESC' ) );