API: Fix E_NOTICE which broke displaying of legacy restrictions (page.page_restrictio...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 17 Mar 2009 15:18:26 +0000 (15:18 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 17 Mar 2009 15:18:26 +0000 (15:18 +0000)
includes/api/ApiQueryInfo.php

index e6b89ae..17c693e 100644 (file)
@@ -345,7 +345,7 @@ class ApiQueryInfo extends ApiQueryBase {
                                $this->protections[$row->page_namespace][$row->page_title][] = $a;
 
                                # Also check old restrictions
-                               if($pageRestrictions[$row->pr_page]) {
+                               if($this->pageRestrictions[$row->pr_page]) {
                                        $restrictions = explode(':', trim($this->pageRestrictions[$row->pr_page]));
                                        foreach($restrictions as $restrict) {
                                                $temp = explode('=', trim($restrict));