Skip to content

Commit f9d580f

Browse files
wesolowskijwilsson
authored andcommitted
Check RETURN_ASSOC in SpotifyWebAPI::deletePlaylistTracks() (#168)
1 parent 937a9f4 commit f9d580f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SpotifyWebAPI.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ public function deletePlaylistTracks($playlistId, $tracks, $snapshotId = '')
417417

418418
if (isset($body->snapshot_id)) {
419419
return $body->snapshot_id;
420+
} elseif (isset($body['snapshot_id'])) {
421+
return $body['snapshot_id'];
420422
}
421423

422424
return false;

0 commit comments

Comments
 (0)