From: Chad Horohoe Date: Tue, 5 Jan 2010 10:50:07 +0000 (+0000) Subject: Only use one if, not 2 X-Git-Tag: 1.31.0-rc.0~38409 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=3cdae769b794d2f84e4f2a0e512023bf81203e53;p=lhc%2Fweb%2Fwiklou.git Only use one if, not 2 --- diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index 48b9feb817..f286fe2c9b 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -114,9 +114,8 @@ class ApiParamInfo extends ApiBase { $a = array('name' => $n); if(isset($paramDesc[$n])) $a['description'] = implode("\n", (array)$paramDesc[$n]); - if(isset($p[ApiBase::PARAM_DEPRECATED])) - if($p[ApiBase::PARAM_DEPRECATED]) - $a['deprecated'] = ''; + if(isset($p[ApiBase::PARAM_DEPRECATED]) && $p[ApiBase::PARAM_DEPRECATED]) + $a['deprecated'] = ''; if(!is_array($p)) { if(is_bool($p))