From 8c4921f5f388f1f81000b2fbef9da35b0787e4d1 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Fri, 12 Oct 2012 16:31:27 -0400 Subject: Consistently use 'object_type' in playlist returns --- lib/class/api.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/class/api.class.php') diff --git a/lib/class/api.class.php b/lib/class/api.class.php index b204ad7b..75fc2a27 100644 --- a/lib/class/api.class.php +++ b/lib/class/api.class.php @@ -568,7 +568,7 @@ class Api { $items = $playlist->get_items(); foreach ($items as $object) { - if ($object['type'] == 'song') { + if ($object['object_type'] == 'song') { $songs[] = $object['object_id']; } } // end foreach -- cgit