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
Unsuppress more phan issues (part 5)
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiBlock.php
diff --git
a/includes/api/ApiBlock.php
b/includes/api/ApiBlock.php
index
2c1564e
..
755f319
100644
(file)
--- a/
includes/api/ApiBlock.php
+++ b/
includes/api/ApiBlock.php
@@
-141,6
+141,7
@@
class ApiBlock extends ApiBase {
}
list( $target, /*...*/ ) = SpecialBlock::getTargetAndType( $params['user'] );
+ $res = [];
$res['user'] = $params['user'];
$res['userID'] = $target instanceof User ? $target->getId() : 0;