From: Alexandre Emsenhuber Date: Thu, 3 Apr 2008 16:30:30 +0000 (+0000) Subject: Fixed E_NOTICE when showing old items of delete/revision log, with those items, ... X-Git-Tag: 1.31.0-rc.0~48641 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=72cb0b09d1fc3e13b9c29e1d46694159e32aa5c8;p=lhc%2Fweb%2Fwiklou.git 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 --- 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] : '';