Merge "Add semantic tags to license info text"
[lhc/web/wiklou.git] / includes / api / ApiTag.php
index 76c6762..c9f6db3 100644 (file)
@@ -37,9 +37,9 @@ 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() ) {
+                       if ( !$ableToTag->isOK() ) {
                                $this->dieStatus( $ableToTag );
                        }
                }