diff options
Diffstat (limited to 'lib/class/playlist.class.php')
-rw-r--r-- | lib/class/playlist.class.php | 12 |
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; |