From: Tim Starling Date: Fri, 30 Nov 2007 14:41:30 +0000 (+0000) Subject: Trivial bug in new apihighlimit feature X-Git-Tag: 1.31.0-rc.0~50664 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=65b4736e662b68a11de93ed10473f67b4dc4b135;p=lhc%2Fweb%2Fwiklou.git Trivial bug in new apihighlimit feature --- diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index acf3e5009e..fbda428ced 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -497,7 +497,7 @@ class ApiMain extends ApiBase { } public function canApiHighLimits() { - if (!is_null ($this->mCanApiHighLimits)) { + if (!isset($this->mCanApiHighLimits)) { global $wgUser; $this->mCanApiHighLimits = $wgUser->isAllowed('apihighlimits'); }