dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix issues identified by SpaceBeforeSingleLineComment sniff
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiManageTags.php
diff --git
a/includes/api/ApiManageTags.php
b/includes/api/ApiManageTags.php
index
80317d3
..
240d350
100644
(file)
--- a/
includes/api/ApiManageTags.php
+++ b/
includes/api/ApiManageTags.php
@@
-49,8
+49,8
@@
class ApiManageTags extends ApiBase {
if ( !$status->isGood() ) {
$ret['warnings'] = $this->getErrorFormatter()->arrayFromStatus( $status, 'warning' );
}
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 );
$ret['logid'] = $status->value;
}
$result->addValue( null, $this->getModuleName(), $ret );