summaryrefslogtreecommitdiff
path: root/app/Auth/Gitlab.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Auth/Gitlab.php')
-rw-r--r--app/Auth/Gitlab.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Auth/Gitlab.php b/app/Auth/Gitlab.php
index 336152a5..d9a985bf 100644
--- a/app/Auth/Gitlab.php
+++ b/app/Auth/Gitlab.php
@@ -76,8 +76,8 @@ class Gitlab extends Base
return $this->user->update(array(
'id' => $user_id,
'gitlab_id' => $profile['id'],
- 'email' => $profile['email'] ?: $user['email'],
- 'name' => $profile['name'] ?: $user['name'],
+ 'email' => empty($user['email']) ? $profile['email'] : $user['email'],
+ 'name' => empty($user['name']) ? $profile['name'] : $user['name'],
));
}