Index: trunk/extensions/SocialProfile/UserStats/TopFansRecent.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | $period = 'monthly'; |
33 | 33 | } |
34 | 34 | |
35 | | - if ( !$period ) { |
| 35 | + if ( !isset( $period ) ) { |
36 | 36 | $period = 'weekly'; |
37 | 37 | } |
38 | 38 | |
— | — | @@ -79,7 +79,7 @@ |
80 | 80 | $top_title = SpecialPage::getTitleFor( 'TopUsers' ); |
81 | 81 | $recent_title = SpecialPage::getTitleFor( 'TopUsersRecent' ); |
82 | 82 | |
83 | | - $out .= '<div class="top-fan-nav"> |
| 83 | + $out = '<div class="top-fan-nav"> |
84 | 84 | <h1>' . wfMsg( 'top-fans-by-points-nav-header' ) . '</h1> |
85 | 85 | <p><a href="' . $top_title->escapeFullURL() . '">' . wfMsg( 'top-fans-total-points-link' ) . '</a></p>'; |
86 | 86 | |