Skip to content

Commit

Permalink
Bugfix for usage on older servers (pre-mobile versions)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostfaassen committed Mar 1, 2016
1 parent fe245ea commit d0c5022
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Client.php
Expand Up @@ -112,7 +112,9 @@ protected function itemToAccount($data)
$account->setDisplayName($data['display_name']);
$account->setAbout($data['about']);
$account->setEmail($data['email']);
$account->setMobile($data['mobile']);
if (isset($data['mobile']) {
$account->setMobile($data['mobile']);
}
if (isset($data['type'])) {
$account->setAccountType($data['type']);
}
Expand Down

0 comments on commit d0c5022

Please sign in to comment.