From 603cc4789ca1fe0a7f76273e273c14fa58bd9a23 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 16 Mar 2013 20:07:29 +0100 Subject: [PATCH] Special:RevisionDelete: DatabaseBase::makeList: empty input bug:45211 Change-Id: I3777c1332aa2a0dd9e9cf4b643b53f31db3f5e91 --- includes/specials/SpecialRevisiondelete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index c85e8914fe..5a5f8ffbfb 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -147,7 +147,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { } else { $this->typeName = $request->getVal( 'type' ); $this->targetObj = Title::newFromText( $request->getText( 'target' ) ); - if ( $this->targetObj && $this->targetObj->isSpecial( 'Log' ) ) { + if ( $this->targetObj && $this->targetObj->isSpecial( 'Log' ) && count( $this->ids ) !== 0 ) { $result = wfGetDB( DB_SLAVE )->select( 'logging', 'log_type', array( 'log_id' => $this->ids ), -- 2.20.1