diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-03-02 00:08:25 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-03-02 00:08:25 +0000 |
commit | 9eca0afefa38b2c171165e2a380fb3d332caa217 (patch) | |
tree | e3389907105b160f264261c03223b5dcca59f130 /lib/class/api.class.php | |
parent | ace25154eb8ed90c557821edceacca097ccc0437 (diff) | |
download | ampache-9eca0afefa38b2c171165e2a380fb3d332caa217.tar.gz ampache-9eca0afefa38b2c171165e2a380fb3d332caa217.tar.bz2 ampache-9eca0afefa38b2c171165e2a380fb3d332caa217.zip |
add clean to handshake information
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r-- | lib/class/api.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/class/api.class.php b/lib/class/api.class.php index f5c4bd42..da4592e9 100644 --- a/lib/class/api.class.php +++ b/lib/class/api.class.php @@ -150,7 +150,7 @@ class Api { debug_event('API','Login Success, passphrase matched','1'); // We need to also get the 'last update' of the catalog information in an RFC 2822 Format - $sql = "SELECT MAX(`last_update`) AS `update`,MAX(`last_add`) AS `add` FROM `catalog`"; + $sql = "SELECT MAX(`last_update`) AS `update`,MAX(`last_add`) AS `add`, MAX(`last_clean`) AS `clean` FROM `catalog`"; $db_results = Dba::query($sql); $row = Dba::fetch_assoc($db_results); @@ -168,6 +168,7 @@ class Api { 'api'=>self::$version, 'update'=>date("c",$row['update']), 'add'=>date("c",$row['add']), + 'clean'=>date("c",$row['clean']), 'songs'=>$counts['song'], 'albums'=>$counts['album'], 'artists'=>$counts['artist'], |