From 2bbb454087413a976f9cbc50826b4b07d5c11d1d Mon Sep 17 00:00:00 2001 From: mgp25 Date: Mon, 17 Aug 2015 03:01:47 +0200 Subject: [PATCH] Fixes #166 --- src/snapchat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snapchat.php b/src/snapchat.php index 4206274..5d1ce64 100644 --- a/src/snapchat.php +++ b/src/snapchat.php @@ -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; } }