mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 02:21:36 +00:00
Prevent the merging of non-music groups
Include empty values in cache debug table Clear cache when replying to staff pm Internal cache is useless in get_artists and get_groups
This commit is contained in:
parent
2ddca2c7b4
commit
90c9f0dffc
@ -1451,7 +1451,7 @@ function get_artists($GroupIDs, $Escape = array()) {
|
|||||||
$Results = array();
|
$Results = array();
|
||||||
$DBs = array();
|
$DBs = array();
|
||||||
foreach($GroupIDs as $GroupID) {
|
foreach($GroupIDs as $GroupID) {
|
||||||
$Artists = $Cache->get_value('groups_artists_'.$GroupID);
|
$Artists = $Cache->get_value('groups_artists_'.$GroupID, true);
|
||||||
if(is_array($Artists)) {
|
if(is_array($Artists)) {
|
||||||
$Results[$GroupID] = $Artists;
|
$Results[$GroupID] = $Artists;
|
||||||
} else {
|
} else {
|
||||||
@ -1547,7 +1547,7 @@ function get_groups($GroupIDs, $Return = true, $GetArtists = true) {
|
|||||||
$NotFound = array_flip($GroupIDs);
|
$NotFound = array_flip($GroupIDs);
|
||||||
|
|
||||||
foreach($GroupIDs as $GroupID) {
|
foreach($GroupIDs as $GroupID) {
|
||||||
$Data = $Cache->get_value('torrent_group_'.$GroupID);
|
$Data = $Cache->get_value('torrent_group_'.$GroupID, true);
|
||||||
if(!empty($Data)) {
|
if(!empty($Data)) {
|
||||||
unset($NotFound[$GroupID]);
|
unset($NotFound[$GroupID]);
|
||||||
$Found[$GroupID] = $Data;
|
$Found[$GroupID] = $Data;
|
||||||
|
Loading…
Reference in New Issue
Block a user