1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 01:39:28 +02:00

fixup! Make song count in handshake match the number returned from songs

Ok, now I get the style
This commit is contained in:
Joel Klinghed 2016-03-27 12:31:10 +02:00
parent 9c8924065c
commit 8d91f875db

View file

@ -226,15 +226,15 @@ class Api
$row = Dba::fetch_assoc($db_results);
// Now we need to quickly get the song totals
$sql = "SELECT COUNT(`id`) AS `song` FROM `song` WHERE `song`.`enabled`='1'";
$sql = "SELECT COUNT(`id`) AS `song` FROM `song` WHERE `song`.`enabled`='1'";
$db_results = Dba::read($sql);
$song = Dba::fetch_assoc($db_results);
$sql = "SELECT COUNT(`id`) AS `album` FROM `album`";
$sql = "SELECT COUNT(`id`) AS `album` FROM `album`";
$db_results = Dba::read($sql);
$album = Dba::fetch_assoc($db_results);
$sql = "SELECT COUNT(`id`) AS `artist` FROM `artist`";
$sql = "SELECT COUNT(`id`) AS `artist` FROM `artist`";
$db_results = Dba::read($sql);
$artist = Dba::fetch_assoc($db_results);