From: Alexandre Emsenhuber Date: Sun, 1 Nov 2009 21:54:25 +0000 (+0000) Subject: Fix for r58410: isset already checks for null, no need to do a double check :) X-Git-Tag: 1.31.0-rc.0~39003 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=cf29f1128514fd3e64c5fd224dbd0de27725dd7f;p=lhc%2Fweb%2Fwiklou.git Fix for r58410: isset already checks for null, no need to do a double check :) --- diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index e4e4d12b9a..d862389a78 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -149,7 +149,7 @@ class ApiQueryRevisions extends ApiQueryBase { $this->addFields('ts_tags'); } - if( isset( $params['tag'] ) && !is_null( $params['tag'] ) ) { + if( isset($params['tag']) ) { $this->addTables('change_tag'); $this->addJoinConds(array('change_tag' => array('INNER JOIN', array('rev_id=ct_rev_id')))); $this->addWhereFld('ct_tag' , $params['tag']);