Index: trunk/extensions/ApprovedRevs/SpecialApprovedRevs.php |
— | — | @@ -160,7 +160,7 @@ |
161 | 161 | FROM $approved_revs ar RIGHT OUTER JOIN $page p |
162 | 162 | ON ar.page_id = p.page_id |
163 | 163 | LEFT OUTER JOIN $page_props pp |
164 | | - ON ar.page_id = pp_page |
| 164 | + ON p.page_id = pp_page |
165 | 165 | WHERE ar.page_id IS NULL |
166 | 166 | AND ($nsCond OR (pp_propname = 'approvedrevs' AND pp_value = 'y'))"; |
167 | 167 | } else { // all approved pages |