X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiDelete.php;h=e19f1f221681997728f73019f90a2ddfde45d49f;hp=7766acd3636966ce703b3ef639ae93ca89d37e09;hb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;hpb=a9007e8baf802f0f57d095e3bb4ad201c98c0cb3 diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index 7766acd363..e19f1f2216 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -1,9 +1,5 @@ .@gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -59,7 +55,7 @@ class ApiDelete 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 );