summaryrefslogtreecommitdiffstats
path: root/classes/script_start.php
diff options
context:
space:
mode:
authorGit <git@what.cd>2011-12-06 08:00:14 +0000
committerGit <git@what.cd>2011-12-06 08:00:14 +0000
commit9f708fcbfb9c13d3a07462650bfec3d213cc8a32 (patch)
treeb483db0a6d63a415b9002ea4c6f8a3bc3f8c0fd0 /classes/script_start.php
parent392bbd036bd678cb2ad5f8f9378aecb6b3e3bba2 (diff)
downloadGazelle-9f708fcbfb9c13d3a07462650bfec3d213cc8a32.zip
Gazelle-9f708fcbfb9c13d3a07462650bfec3d213cc8a32.tar.gz
Gazelle-9f708fcbfb9c13d3a07462650bfec3d213cc8a32.tar.bz2
Empty commit
Diffstat (limited to 'classes/script_start.php')
-rw-r--r--classes/script_start.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/script_start.php b/classes/script_start.php
index dc7db4a..242ee83 100644
--- a/classes/script_start.php
+++ b/classes/script_start.php
@@ -1575,7 +1575,7 @@ function get_artists($GroupIDs, $Escape = array()) {
if(!is_number($GroupID)) {
continue;
}
- $Artists = $Cache->get_value('groups_artists_'.$GroupID, true);
+ $Artists = $Cache->get_value('groups_artists_'.$GroupID);
if(is_array($Artists)) {
$Results[$GroupID] = $Artists;
} else {
@@ -1610,6 +1610,10 @@ function get_artists($GroupIDs, $Escape = array()) {
$Cache->cache_value('groups_artists_'.$GroupID, array());
}
}
+ $Missing = array_diff($GroupIDs, array_keys($Results));
+ if(!empty($Missing)) {
+ $Results += array_fill_keys($Missing, array());
+ }
}
return $Results;
}
@@ -1777,7 +1781,6 @@ function get_groups($GroupIDs, $Return = true, $GetArtists = true) {
$Cache->cache_value('torrent_group_'.$Torrent['GroupID'], array('ver'=>4, 'd'=>$Found[$Torrent['GroupID']]), 0);
}
}
-
if($GetArtists) {
$Artists = get_artists($GroupIDs);
} else {