From 72cb0b09d1fc3e13b9c29e1d46694159e32aa5c8 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 3 Apr 2008 16:30:30 +0000 Subject: [PATCH] Fixed E_NOTICE when showing old items of delete/revision log, with those items, $paramArray is empty, so don't provide links as we don't know the revision id --- includes/LogEventsList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 583036fc94..f28e5fa8bd 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -212,7 +212,7 @@ class LogEventsList { ) ) . ')'; // If an edit was hidden from a page give a review link to the history - } else if( $row->log_action == 'revision' && $wgUser->isAllowed( 'deleterevision' ) ) { + } else if( $row->log_action == 'revision' && $wgUser->isAllowed( 'deleterevision' ) && !empty( $paramArray ) ) { $revdel = SpecialPage::getTitleFor( 'Revisiondelete' ); // Different revision types use different URL params... $subtype = isset($paramArray[2]) ? $paramArray[1] : ''; -- 2.20.1