diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-05 20:59:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-05 20:59:45 +0000 |
commit | ad3d2363c4c20d6b5049c8db92d08786650bd2ae (patch) | |
tree | b72355de5d27c9560d22947efd2d43c77c3e7b9e /lib/class/playlist.class.php | |
parent | aef507d64420f2c82359d5219e83e3e0671522b7 (diff) | |
download | ampache-ad3d2363c4c20d6b5049c8db92d08786650bd2ae.tar.gz ampache-ad3d2363c4c20d6b5049c8db92d08786650bd2ae.tar.bz2 ampache-ad3d2363c4c20d6b5049c8db92d08786650bd2ae.zip |
year another bump on openstrands, removed redundent files, fixed bug with config gen and started work on playlists
Diffstat (limited to 'lib/class/playlist.class.php')
-rw-r--r-- | lib/class/playlist.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/playlist.class.php b/lib/class/playlist.class.php index f5f570ec..863a28a5 100644 --- a/lib/class/playlist.class.php +++ b/lib/class/playlist.class.php @@ -223,10 +223,10 @@ class Playlist { */ function get_song_count() { - $sql = "SELECT COUNT(id) FROM playlist_data WHERE playlist='" . sql_escape($this->id) . "'"; - $db_results = mysql_query($sql, dbh()); + $sql = "SELECT COUNT(`id`) FROM `playlist_data` WHERE `playlist`='" . Dba::escape($this->id) . "'"; + $db_results = Dba::query($sql); - $results = mysql_fetch_row($db_results); + $results = Dba::fetch_row($db_results); return $results['0']; |