Merge "Numbers in the parser profiling data are not internationalized"
[lhc/web/wiklou.git] / includes / api / ApiSetPageLanguage.php
old mode 100755 (executable)
new mode 100644 (file)
index 7e3f1ac..54394a5
@@ -73,7 +73,7 @@ class ApiSetPageLanguage 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 );