Merge "Fix autoloading of ExportProgressFilter"
[lhc/web/wiklou.git] / includes / api / ApiTag.php
index 76c6762..9304c2b 100644 (file)
@@ -37,7 +37,7 @@ class ApiTag extends ApiBase {
                }
 
                // Check if user can add tags
-               if ( count( $params['tags'] ) ) {
+               if ( $params['tags'] ) {
                        $ableToTag = ChangeTags::canAddTagsAccompanyingChange( $params['tags'], $user );
                        if ( !$ableToTag->isOk() ) {
                                $this->dieStatus( $ableToTag );