From: Sam Reed Date: Wed, 6 Jan 2010 23:21:46 +0000 (+0000) Subject: "apprfiltercascade - Filter protections based on cascadingness (ignored when apprtype... X-Git-Tag: 1.31.0-rc.0~38379 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=bd983afb0e966ff85cccaebc17f04054f65217be;p=lhc%2Fweb%2Fwiklou.git "apprfiltercascade - Filter protections based on cascadingness (ignored when apprtype isn't set) One value: cascading, noncascading, all" So it can't be both. Change 2nd if to else if --- diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllpages.php index bdae22ecd6..c8fed05b52 100644 --- a/includes/api/ApiQueryAllpages.php +++ b/includes/api/ApiQueryAllpages.php @@ -101,7 +101,7 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase { $this->addWhereFld('pr_level', $prlevel); if ($params['prfiltercascade'] == 'cascading') $this->addWhereFld('pr_cascade', 1); - if ($params['prfiltercascade'] == 'noncascading') + else if ($params['prfiltercascade'] == 'noncascading') $this->addWhereFld('pr_cascade', 0); $this->addOption('DISTINCT');