From 9c13121d8325d61b87e578124540a516a3914903 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 14 Mar 2007 02:40:47 +0000 Subject: [PATCH] *Fix seek offset bug for showList() when there are no results --- includes/SpecialLog.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ) { -- 2.20.1