diff --git a/src/PhotosApi.php b/src/PhotosApi.php index 0e472c9..e110a68 100644 --- a/src/PhotosApi.php +++ b/src/PhotosApi.php @@ -474,7 +474,7 @@ public function getSets($photoIds, $userId = null) } foreach ($sets['photoset'] as $photoset) { foreach ($photoIds as $photoId) { - if (in_array($photoId, $photoset['has_requested_photos'])) { + if (is_array($photoset['has_requested_photos']) && in_array($photoId, $photoset['has_requested_photos'])) { $out[] = $photoset; } }