From: Roan Kattouw Date: Tue, 17 Mar 2009 15:18:26 +0000 (+0000) Subject: API: Fix E_NOTICE which broke displaying of legacy restrictions (page.page_restrictio... X-Git-Tag: 1.31.0-rc.0~42467 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=3f3bfb576d25db2c630d6c8062d93e757f59ff97;p=lhc%2Fweb%2Fwiklou.git API: Fix E_NOTICE which broke displaying of legacy restrictions (page.page_restrictions) in prop=info --- diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index e6b89aeced..17c693e5b7 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -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));