Index: trunk/phase3/includes/filerepo/ArchivedFile.php |
— | — | @@ -119,8 +119,7 @@ |
120 | 120 | $conds, |
121 | 121 | __METHOD__, |
122 | 122 | array( 'ORDER BY' => 'fa_timestamp DESC' ) ); |
123 | | - |
124 | | - if ( $dbr->numRows( $res ) == 0 ) { |
| 123 | + if ( $res == false || $dbr->numRows( $res ) == 0 ) { |
125 | 124 | // this revision does not exist? |
126 | 125 | return; |
127 | 126 | } |