diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-07-09 19:32:21 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-07-09 19:32:21 +0000 |
commit | 17ff1d5f0f60e29cf12509be663c6f7b2c97893a (patch) | |
tree | 26059e0676ee28cd87181334634869f5f3fff11e /modules | |
parent | c5d6e04d114d3c4b3f31743ccd0d4a60c9ef9632 (diff) | |
download | ampache-17ff1d5f0f60e29cf12509be663c6f7b2c97893a.tar.gz ampache-17ff1d5f0f60e29cf12509be663c6f7b2c97893a.tar.bz2 ampache-17ff1d5f0f60e29cf12509be663c6f7b2c97893a.zip |
fixed song class
Diffstat (limited to 'modules')
-rw-r--r-- | modules/lib.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/modules/lib.php b/modules/lib.php index 2d8adef8..2f89fbbe 100644 --- a/modules/lib.php +++ b/modules/lib.php @@ -104,38 +104,6 @@ function show_local_catalog_info() { /* - * get_popular_songs() - * - */ - -function get_popular_songs( $threshold, $type, $user_id = '' ) { - - $dbh = dbh(); - - if ( $type == 'your' ) { - $sql = "SELECT object_id FROM object_count" . - " WHERE object_type = 'song'" . - " AND userid = '$user_id'" . - " ORDER BY count DESC LIMIT $threshold"; - } - else { - $sql = "SELECT object_id FROM object_count" . - " WHERE object_type = 'song'" . - " ORDER BY count DESC LIMIT $threshold"; - } - - $db_result = mysql_query($sql, $dbh); - $songs = array(); - - while ( $id = mysql_fetch_array($db_result) ) { - $songs[] = $id[0]; - } - - return $songs; -} // get_popular_songs() - - -/* * show_random_play() * */ |