From: Mark A. Hershberger Date: Tue, 7 Dec 2010 22:58:29 +0000 (+0000) Subject: Found an error when $res = false while running tests X-Git-Tag: 1.31.0-rc.0~33454 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=c089df80d834a6c7dbe10b00c25fbdd5a586c7a6;p=lhc%2Fweb%2Fwiklou.git Found an error when $res = false while running tests --- 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; }