Index: trunk/extensions/CollabWatchlist/includes/SpecialCollabWatchlist.php |
— | — | @@ -146,9 +146,6 @@ |
147 | 147 | $invert = $wgRequest->getBool( 'invert' ); |
148 | 148 | if ( !is_null( $collabWatchlist ) && $collabWatchlist !== 'all' ) { |
149 | 149 | $collabWatchlist = intval( $collabWatchlist ); |
150 | | - } else { |
151 | | - $collabWatchlist = 0; |
152 | | - return; |
153 | 150 | } |
154 | 151 | if ( array_key_exists( $collabWatchlist, $listIdsAndNames ) ) { |
155 | 152 | $wgOut->addHTML( Xml::element( 'h2', null, $listIdsAndNames[$collabWatchlist] ) ); |
— | — | @@ -159,6 +156,8 @@ |
160 | 157 | $editor->execute( $collabWatchlist, $listIdsAndNames, $wgOut, $wgRequest, $mode ); |
161 | 158 | return; |
162 | 159 | } |
| 160 | + if ( !$collabWatchlist ) |
| 161 | + return; |
163 | 162 | |
164 | 163 | $dbr = wfGetDB( DB_SLAVE, 'watchlist' ); |
165 | 164 | $recentchanges = $dbr->tableName( 'recentchanges' ); |