Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Fixes #166
Browse files Browse the repository at this point in the history
  • Loading branch information
mgp25 committed Aug 17, 2015
1 parent b4ead7d commit 2bbb454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snapchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -1262,9 +1262,9 @@ public function getUnconfirmedFriends()
$friends = $updates['data']->friends_response->added_friends;
foreach($friends as $friend)
{
if ($friend->type == 1)
if ($friend->type == 0)
{
if (($friend->name != 'array') && ($friend->is_shared_story != 1))
if ((!is_array($friend->name)) && ($friend->is_shared_story != 0))
$unconfirmedList[] = $friend->name;
}
}
Expand Down

0 comments on commit 2bbb454

Please sign in to comment.