}
// 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 );
}
}