summaryrefslogtreecommitdiffstats
path: root/lib/class/playlist.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/playlist.class.php')
-rw-r--r--lib/class/playlist.class.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/class/playlist.class.php b/lib/class/playlist.class.php
index a3455d7f..0ab165cd 100644
--- a/lib/class/playlist.class.php
+++ b/lib/class/playlist.class.php
@@ -76,8 +76,12 @@ class Playlist {
*/
function get_track($id) {
+ $sql = "SELECT track FROM playlist_data WHERE id='" . sql_escape($id) . "'";
+ $db_results = mysql_query($sql, dbh());
+ $result = mysql_fetch_assoc($db_results);
+ return $result['track'];
} // get_track