Index: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php |
— | — | @@ -217,6 +217,9 @@ |
218 | 218 | foreach ( $problems as $page ) { |
219 | 219 | $row = array(); |
220 | 220 | $pageTitle = self::getTitleFromID( $page['page'] ); |
| 221 | + if ( !$pageTitle ) { |
| 222 | + continue; |
| 223 | + } |
221 | 224 | $row['page'] = $wgUser->getSkin()->link( $pageTitle, $pageTitle->getPrefixedText() ); |
222 | 225 | foreach ( $page['ratings'] as $id => $value ) { |
223 | 226 | $row[] = array( |
— | — | @@ -373,7 +376,7 @@ |
374 | 377 | $num_highs = $num_ratings / 2; |
375 | 378 | } |
376 | 379 | $highs = array_slice( $highs_lows, -$num_highs, $num_highs ); |
377 | | - |
| 380 | + |
378 | 381 | // Sort descending |
379 | 382 | return array_reverse( $highs ); |
380 | 383 | } |
Index: branches/wmf/1.17wmf1/extensions/ArticleFeedback/SpecialArticleFeedback.php |
— | — | @@ -217,6 +217,9 @@ |
218 | 218 | foreach ( $problems as $page ) { |
219 | 219 | $row = array(); |
220 | 220 | $pageTitle = self::getTitleFromID( $page['page'] ); |
| 221 | + if ( $pageTitle ) { |
| 222 | + continue; |
| 223 | + } |
221 | 224 | $row['page'] = $wgUser->getSkin()->link( $pageTitle, $pageTitle->getPrefixedText() ); |
222 | 225 | foreach ( $page['ratings'] as $id => $value ) { |
223 | 226 | $row[] = array( |