Merge "phpunit: Remove outdated comment about calling of LinkCache::clear()"
[lhc/web/wiklou.git] / includes / api / ApiRollback.php
index 76b6cc6..4ca2955 100644 (file)
@@ -52,7 +52,7 @@ class ApiRollback extends ApiBase {
 
                // If change tagging was requested, check that the user is allowed to tag,
                // and the tags are valid
-               if ( count( $params['tags'] ) ) {
+               if ( $params['tags'] ) {
                        $tagStatus = ChangeTags::canAddTagsAccompanyingChange( $params['tags'], $user );
                        if ( !$tagStatus->isOK() ) {
                                $this->dieStatus( $tagStatus );