Bug. Steam provider.
-
Hello.
Everything works great for me except one thing here://hybridauth/Hybrid/Providers/Steam.php:90 $userProfile['profileURL' ] = property_exists( $data, 'customURL' ) ? "https://steamcommunity.com/id/{$data->customURL}/" : "https://steamcommunity.com/profiles/{$this->user->profile->identifier}/";
property ‘customURL’ is always exists but may have empty value, so profileURL may be ‘https://steamcommunity.com/id//’
I changed it like that
$userProfile['profileURL' ] = property_exists( $data, 'customURL' ) && !empty((string)$data->customURL)
and now it works fine,
its important to cast to string, actually if there is no value, property conctain SimpleXMLObject or something so ’empty($data->customURL)’ always return falseI think its about all values, i just had a problem with exactly this.
Thanks, Maxime =)
- The topic ‘Bug. Steam provider.’ is closed to new replies.