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:
parent
9c8924065c
commit
8d91f875db
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue