From: Alexandre Emsenhuber Date: Tue, 26 Jun 2012 09:09:53 +0000 (+0200) Subject: Explicitely define $links as an array in SpecialBlock::postText(). X-Git-Tag: 1.31.0-rc.0~23215^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=655d8cd9c9e1713986a18a67e0e4d2de8a3ba3e7;p=lhc%2Fweb%2Fwiklou.git 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 --- 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() );