From 3cdae769b794d2f84e4f2a0e512023bf81203e53 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 5 Jan 2010 10:50:07 +0000 Subject: [PATCH] Only use one if, not 2 --- includes/api/ApiParamInfo.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)) -- 2.20.1