From 3f3bfb576d25db2c630d6c8062d93e757f59ff97 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 17 Mar 2009 15:18:26 +0000 Subject: [PATCH] API: Fix E_NOTICE which broke displaying of legacy restrictions (page.page_restrictions) in prop=info --- includes/api/ApiQueryInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.20.1