Avoid relying on isset(). This can cause problems with PHP's (thankfully now uncommo...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 24 Jan 2008 20:14:35 +0000 (20:14 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 24 Jan 2008 20:14:35 +0000 (20:14 +0000)
includes/Skin.php

index 2d2a4ae..ca5ba11 100644 (file)
@@ -1620,6 +1620,7 @@ END;
 
                $bar = array();
                $lines = explode( "\n", wfMsgForContent( 'sidebar' ) );
+               $heading = '';
                foreach ($lines as $line) {
                        if (strpos($line, '*') !== 0)
                                continue;
@@ -1649,7 +1650,6 @@ END;
                                                }
                                        }
 
-                                       if( !isset($heading) ) $heading='';
                                        $bar[$heading][] = array(
                                                'text' => $text,
                                                'href' => $href,