diff options
Diffstat (limited to 'includes/api')
-rw-r--r-- | includes/api/ApiUnblock.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/ApiUnblock.php b/includes/api/ApiUnblock.php index e34771fc..ff9ac474 100644 --- a/includes/api/ApiUnblock.php +++ b/includes/api/ApiUnblock.php @@ -79,7 +79,7 @@ class ApiUnblock extends ApiBase { $res['id'] = $block->getId(); $target = $block->getType() == Block::TYPE_AUTO ? '' : $block->getTarget(); - $res['user'] = $target; + $res['user'] = $target instanceof User ? $target->getName() : $target; $res['userid'] = $target instanceof User ? $target->getId() : 0; $res['reason'] = $params['reason']; $this->getResult()->addValue( null, $this->getModuleName(), $res ); |