mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
Empty commit
This commit is contained in:
parent
392bbd036b
commit
9f708fcbfb
@ -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 {
|
||||
|
@ -197,13 +197,12 @@
|
||||
<input type="button" value="Assign to forum staff" onClick="location.href='staffpm.php?action=assign&to=forum&convid=<?=$ConvID?>';" />
|
||||
<? }
|
||||
|
||||
if ($Status != 'Resolved') {
|
||||
|
||||
if ($IsFLS) { ?>
|
||||
if ($Status != 'Resolved') { ?>
|
||||
<input type="button" value="Resolve" onClick="location.href='staffpm.php?action=resolve&id=<?=$ConvID?>';" />
|
||||
<? if ($IsFLS) { //Moved by request ?>
|
||||
<input type="button" value="Common answers" onClick="$('#common_answers').toggle();" />
|
||||
<input type="button" value="Preview" onclick="PreviewMessage();" />
|
||||
<? } ?>
|
||||
<input type="button" value="Resolve" onClick="location.href='staffpm.php?action=resolve&id=<?=$ConvID?>';" />
|
||||
<input type="submit" value="Send message" />
|
||||
<? } else { ?>
|
||||
<input type="button" value="Unresolve" onClick="location.href='staffpm.php?action=unresolve&id=<?=$ConvID?>';" />
|
||||
|
Loading…
Reference in New Issue
Block a user