[InstagramBridge] Use lowercase comparison when looking up user pk
This commit is contained in:
parent
0705a2e7bb
commit
7b63da522f
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class InstagramBridge extends BridgeAbstract {
|
|||
$data = getContents(self::URI . 'web/search/topsearch/?query=' . $username);
|
||||
|
||||
foreach(json_decode($data)->users as $user) {
|
||||
if($user->user->username === $username) {
|
||||
if(strtolower($user->user->username) === strtolower($username)) {
|
||||
$key = $user->user->pk;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue