PluginProbe
Loginizer / trunk
Loginizer vtrunk
2.1.0 2.0.9 2.0.8 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 All 74 releases
← All changes | main/social-login.php +2 -2 2.0.2 → trunk View file →
@@ -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