From 655d8cd9c9e1713986a18a67e0e4d2de8a3ba3e7 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 26 Jun 2012 11:09:53 +0200 Subject: [PATCH] Explicitely define $links as an array in SpecialBlock::postText(). I know this doesn't change anything, but that's with stuff like this we do get E_NOTICEs when suddenly there're no more items in the array. Change-Id: I633d04297e756cc1e1cc74cd0e65ebf1cb6dfdd1 --- includes/specials/SpecialBlock.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index 4d74fe18df..3c43ed1b2b 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -338,6 +338,8 @@ class SpecialBlock extends FormSpecialPage { * @return string */ protected function postText(){ + $links = array(); + # Link to the user's contributions, if applicable if( $this->target instanceof User ){ $contribsPage = SpecialPage::getTitleFor( 'Contributions', $this->target->getName() ); -- 2.20.1