From c089df80d834a6c7dbe10b00c25fbdd5a586c7a6 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Tue, 7 Dec 2010 22:58:29 +0000 Subject: [PATCH] Found an error when $res = false while running tests --- includes/filerepo/ArchivedFile.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/filerepo/ArchivedFile.php b/includes/filerepo/ArchivedFile.php index ecc0997851..b4e1cc5fb5 100644 --- a/includes/filerepo/ArchivedFile.php +++ b/includes/filerepo/ArchivedFile.php @@ -119,8 +119,7 @@ class ArchivedFile { $conds, __METHOD__, array( 'ORDER BY' => 'fa_timestamp DESC' ) ); - - if ( $dbr->numRows( $res ) == 0 ) { + if ( $res == false || $dbr->numRows( $res ) == 0 ) { // this revision does not exist? return; } -- 2.20.1