summaryrefslogtreecommitdiffstats
path: root/lib/class/api.class.php
diff options
context:
space:
mode:
authorKarl Vollmer <karl.vollmer@dal.ca>2011-11-28 11:22:47 -0400
committerKarl Vollmer <karl.vollmer@dal.ca>2011-11-28 11:22:47 -0400
commit2c06cb5440e7075721872538e661850932eaa55b (patch)
tree74e7ed06a126c0c9cb0c08af09f5256861b37844 /lib/class/api.class.php
parente862098f66d7959663715b7b7002cf087f0fe3cd (diff)
downloadampache-2c06cb5440e7075721872538e661850932eaa55b.tar.gz
ampache-2c06cb5440e7075721872538e661850932eaa55b.tar.bz2
ampache-2c06cb5440e7075721872538e661850932eaa55b.zip
Switched API to exceptions rather then trigger_error in most instances, more work on the
remote catalog indexing.
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r--lib/class/api.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/api.class.php b/lib/class/api.class.php
index 54fa0a94..7d1c8840 100644
--- a/lib/class/api.class.php
+++ b/lib/class/api.class.php
@@ -210,7 +210,7 @@ class Api {
$db_results = Dba::read($sql);
$playlist = Dba::fetch_assoc($db_results);
- $sql = "SELECT COUNT(`id`) AS `catalog` FROM `catalog`";
+ $sql = "SELECT COUNT(`id`) AS `catalog` FROM `catalog` WHERE `catalog_type`='local'";
$db_results = Dba::read($sql);
$catalog = Dba::fetch_assoc($db_results);