diff options
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r-- | lib/class/catalog.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index 1e2878bf..7d5d4746 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -347,7 +347,7 @@ class Catalog extends database_object { * in this catalog. */ public static function count_songs($id = null) { - $where_sql = $catalog_id ? 'WHERE `catalog` = ?' : ''; + $where_sql = $id ? 'WHERE `catalog` = ?' : ''; $params = $id ? array($id) : null; $sql = 'SELECT COUNT(`id`), SUM(`time`), SUM(`size`) FROM `song` ' . |