Explicitely define $links as an array in SpecialBlock::postText().
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 26 Jun 2012 09:09:53 +0000 (11:09 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 26 Jun 2012 09:13:18 +0000 (11:13 +0200)
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

index 4d74fe1..3c43ed1 100644 (file)
@@ -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() );