*Fix seek offset bug for showList() when there are no results
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 14 Mar 2007 02:40:47 +0000 (02:40 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 14 Mar 2007 02:40:47 +0000 (02:40 +0000)
includes/SpecialLog.php

index be29167..9194a53 100644 (file)
@@ -290,7 +290,11 @@ class LogViewer {
         * @param OutputPage $out where to send output
         */
        function showList( &$out ) {
-               $this->doShowList( $out, $this->getLogRows() );
+               if ( $this->numResults > 0 ) {
+                       $this->doShowList( $out, $this->getLogRows() );
+               } else {
+                       $this->showError( $out );
+               }
        }
 
        function doShowList( &$out, $result ) {