Shut up notices
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 27 Sep 2004 06:20:57 +0000 (06:20 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 27 Sep 2004 06:20:57 +0000 (06:20 +0000)
maintenance/compressOld.inc

index a438bfa..9f1700d 100644 (file)
@@ -32,6 +32,7 @@ function compressOldPages( $start = 0 ) {
 }
 
 function compressPage( $row ) {
+       $fname = 'compressPage';
        if( false !== strpos( $row->old_flags, "gzip" ) ) {
                print "Already compressed row {$row->old_id}?\n";
                return false;
@@ -47,7 +48,7 @@ function compressPage( $row ) {
                        'old_id' => $row->old_id
                ), $fname, 'LIMIT 1'
        );
-       return $res;
+       return true;
 }
 
 ?>