From 83ad00fa3674eb3279c4e6e2d792a28c7cbaddf1 Mon Sep 17 00:00:00 2001 From: mgp25 Date: Sun, 6 Sep 2015 02:00:42 +0200 Subject: [PATCH] Fixes #185 --- src/snapchat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snapchat.php b/src/snapchat.php index b8ac05f..2936b48 100644 --- a/src/snapchat.php +++ b/src/snapchat.php @@ -1330,7 +1330,7 @@ public function getUnconfirmedFriends() { if ($friend->type == 0) { - if ((!is_array($friend->name)) && ($friend->is_shared_story != 0)) + if ((!is_array($friend->name)) && (isset($friend->is_shared_story) && ($friend->is_shared_story != 0))) $unconfirmedList[] = $friend->name; } }