summaryrefslogtreecommitdiffstats
path: root/lib/class/playlist.class.php
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2012-10-12 16:31:27 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2012-10-15 13:20:27 -0400
commit8c4921f5f388f1f81000b2fbef9da35b0787e4d1 (patch)
tree91e76434642ba226ab44e3872478b67489a6783d /lib/class/playlist.class.php
parentd7c0531871e2e67b55fcfc5277a863a35b7f0b6c (diff)
downloadampache-8c4921f5f388f1f81000b2fbef9da35b0787e4d1.tar.gz
ampache-8c4921f5f388f1f81000b2fbef9da35b0787e4d1.tar.bz2
ampache-8c4921f5f388f1f81000b2fbef9da35b0787e4d1.zip
Consistently use 'object_type' in playlist returns
Diffstat (limited to 'lib/class/playlist.class.php')
-rw-r--r--lib/class/playlist.class.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/class/playlist.class.php b/lib/class/playlist.class.php
index 92d28a07..75792f99 100644
--- a/lib/class/playlist.class.php
+++ b/lib/class/playlist.class.php
@@ -142,7 +142,12 @@ class Playlist extends playlist_object {
$db_results = Dba::read($sql);
while ($row = Dba::fetch_assoc($db_results)) {
- $results[] = array('type'=>$row['object_type'],'object_id'=>$row['object_id'],'track'=>$row['track'],'track_id'=>$row['id']);
+ $results[] = array(
+ 'object_type' => $row['object_type'],
+ 'object_id' => $row['object_id'],
+ 'track' => $row['track'],
+ 'track_id' => $row['id']
+ );
} // end while
return $results;
@@ -165,7 +170,10 @@ class Playlist extends playlist_object {
while ($row = Dba::fetch_assoc($db_results)) {
- $results[] = array('type'=>$row['object_type'],'object_id'=>$row['object_id']);
+ $results[] = array(
+ 'object_type' => $row['object_type'],
+ 'object_id' => $row['object_id']
+ );
} // end while
return $results;