diff options
Diffstat (limited to 'app/Auth/Google.php')
-rw-r--r-- | app/Auth/Google.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Auth/Google.php b/app/Auth/Google.php index 972dd748..10ecfe8f 100644 --- a/app/Auth/Google.php +++ b/app/Auth/Google.php @@ -77,8 +77,8 @@ class Google extends Base return $this->user->update(array( 'id' => $user_id, 'google_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'], )); } |