Skip to content

Commit

Permalink
Merge pull request #12 from JPAntonisse/master
Browse files Browse the repository at this point in the history
Update UserPHP
  • Loading branch information
vluzrmos committed Oct 22, 2016
2 parents 07c4443 + 35864da commit 8213d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Vluzrmos/SlackApi/Methods/User.php
Expand Up @@ -32,7 +32,7 @@ public function info($user)
{
$user = $this->getUsersIDsByNicks($user);

return $this->method('info', ['user' => $user[0]]);
return $this->method('info', ['user' => isset($user[0]) ? $user[0]: null]);
}

/**
Expand Down

0 comments on commit 8213d8d

Please sign in to comment.