Index: trunk/phase3/maintenance/updateRestrictions.php |
— | — | @@ -81,6 +81,8 @@ |
82 | 82 | echo "...removing dead rows from page_restrictions\n"; |
83 | 83 | // Kill any broken rows from previous imports |
84 | 84 | $db->delete( 'page_restrictions', array( 'pr_level' => '' ) ); |
| 85 | + // Kill other invalid rows |
| 86 | + $db->deleteJoin( 'page_restrictions', 'page', 'pr_page', 'page_id', array('page_namespace' => NS_MEDIAWIKI) ); |
85 | 87 | echo "...Done!\n"; |
86 | 88 | } |
87 | 89 | |