| @@ -131,9 +131,9 @@ | ||
| 131 | 131 | 'identifier' => $userProfile->identifier, |
| 132 | 132 | 'email' => $userProfile->email, |
| 133 | 133 | 'first_name' => $userProfile->firstName, |
| 134 | 134 | 'last_name' => $userProfile->lastName, |
| 135 | - 'photoURL' => strtok($userProfile->photoURL, '?'), | |
| 135 | + 'photoURL' => !empty($userProfile->photoURL) ? strtok($userProfile->photoURL, '?') : '', | |
| 136 | 136 | ]; |
| 137 | 137 | |
| 138 | 138 | $adapter->disconnect(); |
| 139 | 139 | |
| @@ -222,9 +222,9 @@ | ||
| 222 | 222 | 'secret' => $provider['client_secret'] |
| 223 | 223 | ] |
| 224 | 224 | ]; |
| 225 | 225 | |
| 226 | - if($key = 'MicrosoftGraph' && !empty($provider['account_type']) && $provider['account_type'] != 'common'){ | |
| 226 | + if($key == 'MicrosoftGraph' && !empty($provider['account_type']) && $provider['account_type'] != 'common'){ | |
| 227 | 227 | $config[$config_index]['tenant'] = $provider['account_type']; |
| 228 | 228 | } |
| 229 | 229 | } |
| 230 | 230 | |