Changeset 1698
- Timestamp:
- 08/26/08 09:02:11 (3 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
docs/CHANGELOG (modified) (1 diff)
-
lib/class/artist.class.php (modified) (2 diffs)
-
lib/class/browse.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/CHANGELOG
r1686 r1698 5 5 -------------------------------------------------------------------------- 6 6 v.3.5-Alpha1 7 - Fixed count issue on browse Artists (Thx Sylvander) 7 8 - Fixed prevent_multiple_logins, preventing all logins (Thx hugh) 8 9 - Fixed Export catalog headers so it corretly prompts you to download -
trunk/lib/class/artist.class.php
r1670 r1698 90 90 // If we need to also pull the extra information, this is normally only used when we are doing the human display 91 91 if ($extra) { 92 $sql = "SELECT `song`.`artist`, COUNT(`song`.`id`) AS `song_count`, COUNT( `song`.`album`) AS `album_count`, SUM(`song`.`time`) AS `time` FROM `song` " .92 $sql = "SELECT `song`.`artist`, COUNT(`song`.`id`) AS `song_count`, COUNT(DISTINCT `song`.`album`) AS `album_count`, SUM(`song`.`time`) AS `time` FROM `song` " . 93 93 "WHERE `song`.`artist` IN $idlist GROUP BY `song`.`artist`"; 94 94 $db_results = Dba::query($sql); … … 189 189 else { 190 190 $uid = Dba::escape($this->id); 191 $sql = "SELECT `song`.`artist`,COUNT(`song`.`id`) AS `song_count`, COUNT( `song`.`album`) AS `album_count`, SUM(`song`.`time`) AS `time` FROM `song` " .191 $sql = "SELECT `song`.`artist`,COUNT(`song`.`id`) AS `song_count`, COUNT(DISTINCT `song`.`album`) AS `album_count`, SUM(`song`.`time`) AS `time` FROM `song` " . 192 192 "WHERE `song`.`artist`='$uid' GROUP BY `song`.`artist`"; 193 193 $db_results = Dba::query($sql); -
trunk/lib/class/browse.class.php
r1681 r1698 946 946 // Limit is based on the users preferences if this is not a simple browse because we've got too much here 947 947 if (count($object_ids) > self::$start AND !self::is_simple_browse()) { 948 $object_ids = array_slice($object_ids,self::$start, $limit);948 $object_ids = array_slice($object_ids,self::$start,self::$offset); 949 949 } 950 950
