Merge "Drop unused FormatMetadata::flattenArray method"
[lhc/web/wiklou.git] / includes / api / ApiManageTags.php
index 80317d3..240d350 100644 (file)
@@ -49,8 +49,8 @@ class ApiManageTags extends ApiBase {
                if ( !$status->isGood() ) {
                        $ret['warnings'] = $this->getErrorFormatter()->arrayFromStatus( $status, 'warning' );
                }
-               if ( $status->value !== null ) {
-                       $ret['success'] = '';
+               $ret['success'] = $status->value !== null;
+               if ( $ret['success'] ) {
                        $ret['logid'] = $status->value;
                }
                $result->addValue( null, $this->getModuleName(), $ret );