diff options
author | Kevin James 'purdyk' Purdy <purdyk@gmail.com> | 2008-08-14 22:34:40 +0000 |
---|---|---|
committer | Kevin James 'purdyk' Purdy <purdyk@gmail.com> | 2008-08-14 22:34:40 +0000 |
commit | e912d72ed4470f1d99fcf7c0ca3efc96d5cc4093 (patch) | |
tree | 42a5eeb2d6fbe8ee6dd8575fa318ae98ec8f27d1 /lib/class/api.class.php | |
parent | 64fb3786bbe81bc72099f154c59c9c7fefcbd2c9 (diff) | |
download | ampache-e912d72ed4470f1d99fcf7c0ca3efc96d5cc4093.tar.gz ampache-e912d72ed4470f1d99fcf7c0ca3efc96d5cc4093.tar.bz2 ampache-e912d72ed4470f1d99fcf7c0ca3efc96d5cc4093.zip |
Updated handshake stats SQL broken by lack of genre column in songs table.
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r-- | lib/class/api.class.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/class/api.class.php b/lib/class/api.class.php index 09cb9997..6ccebe50 100644 --- a/lib/class/api.class.php +++ b/lib/class/api.class.php @@ -103,7 +103,7 @@ class Api { // Now we need to quickly get the totals of songs $sql = "SELECT COUNT(`id`) AS `song`,COUNT(DISTINCT(`album`)) AS `album`," . - "COUNT(DISTINCT(`artist`)) AS `artist`,COUNT(DISTINCT(`genre`)) as `genre` FROM `song`"; + "COUNT(DISTINCT(`artist`)) AS `artist` FROM `song`"; $db_results = Dba::query($sql); $counts = Dba::fetch_assoc($db_results); @@ -118,7 +118,6 @@ class Api { 'songs'=>$counts['song'], 'albums'=>$counts['album'], 'artists'=>$counts['artist'], - 'genres'=>$counts['genre'], 'playlists'=>$playlist['playlist']); } // match |