diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 00:40:03 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 00:40:03 -0500 |
commit | 31920c88a7b109d789511f45502c6291a2e617a0 (patch) | |
tree | 38d0528740bc05aeb8ee4d7c646b1a9d24e89353 /lib/class/catalog.class.php | |
parent | d86e605fedaf05e280bb027cc2b583406b3490c6 (diff) | |
download | ampache-31920c88a7b109d789511f45502c6291a2e617a0.tar.gz ampache-31920c88a7b109d789511f45502c6291a2e617a0.tar.bz2 ampache-31920c88a7b109d789511f45502c6291a2e617a0.zip |
Move Catalog::get_disabled() to Song
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r-- | lib/class/catalog.class.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index 86ae20a8..ac83feb2 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -768,28 +768,6 @@ class Catalog extends database_object { } //get_catalog_files /** - * get_disabled - * Gets an array of the disabled songs for all catalogs - * and returns full song objects with them - */ - public static function get_disabled($count=0) { - - $results = array(); - - if ($count) { $limit_clause = " LIMIT $count"; } - - $sql = "SELECT `id` FROM `song` WHERE `enabled`='0' $limit_clause"; - $db_results = Dba::read($sql); - - while ($r = Dba::fetch_assoc($db_results)) { - $results[] = new Song($r['id']); - } - - return $results; - - } // get_disabled - - /** * dump_album_art * This runs through all of the albums and tries to dump the * art for them into the 'folder.jpg' file in the appropriate dir |