diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-02 04:57:56 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-02 04:57:56 +0000 |
commit | 9457b75fb16f05347c08b484db6fe2b848efba15 (patch) | |
tree | 18245ab1b8a2fc7953c9fc04e541d46791737ec8 /lib/general.lib.php | |
parent | d54efca7bd1ee28683506b452f58742f8a8f678f (diff) | |
download | ampache-9457b75fb16f05347c08b484db6fe2b848efba15.tar.gz ampache-9457b75fb16f05347c08b484db6fe2b848efba15.tar.bz2 ampache-9457b75fb16f05347c08b484db6fe2b848efba15.zip |
fixed some catalog update issues, fixed some genre pages and made the sql sort stuff for show songs work
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r-- | lib/general.lib.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php index a8bc18d6..03855ad8 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -534,27 +534,6 @@ function tbl_name($table) { } // tbl_name /** - * clear_catalog_stats() - * - * Use this to clear the stats for the entire Ampache server. - * @package Catalog - * @catagory Clear - */ -function clear_catalog_stats() { - - $dbh = dbh(); - - /* Wipe out the object_count table */ - $sql = "TRUNCATE object_count"; - $results = mysql_query($sql, $dbh); - - /* Set every song to unplayed */ - $sql = "UPDATE song SET played='0'"; - $results = mysql_query($sql, $dbh); - -} // clear_catalog_stats - -/** * scrub_out * This function is used to escape user data that is getting redisplayed * onto the page, it htmlentities the mojo |