From: Aaron Schulz Date: Wed, 14 Mar 2007 02:40:47 +0000 (+0000) Subject: *Fix seek offset bug for showList() when there are no results X-Git-Tag: 1.31.0-rc.0~53753 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=9c13121d8325d61b87e578124540a516a3914903;p=lhc%2Fweb%2Fwiklou.git *Fix seek offset bug for showList() when there are no results --- diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index be29167dd9..9194a53f3d 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -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 ) {