Empty commit

This commit is contained in:
Git 2012-01-17 08:00:16 +00:00
parent c8120cedff
commit 95c4f58063
2 changed files with 6 additions and 4 deletions

View File

@ -1639,7 +1639,7 @@ function display_artists($Artists, $MakeLink = true, $IncludeHyphen = true, $Esc
$Conductors = $Artists[5];
$DJs = $Artists[6];
if (count($MainArtists) + (count($Composers)<3?count($Composers):0) + count($Conductors) + count($DJs) == 0) {
if ((count($MainArtists) + count($Conductors) + count($DJs) == 0) && (count($Composers) == 0)) {
return '';
}
@ -1703,6 +1703,8 @@ function display_artists($Artists, $MakeLink = true, $IncludeHyphen = true, $Esc
if ((count($Composers) > 0) && (count($MainArtists) + count($Conductors) > 3) && (count($MainArtists) > 1) && (count($Conductors) > 1)) {
$link = $ComposerStr . 'Various Artists';
} elseif ((count($Composers) > 2) && (count($MainArtists) + count($Conductors) == 0)) {
$link = 'Various Composers';
}
// DJs override everything else

View File

@ -255,7 +255,7 @@ function check_paranoia_here($Setting) {
$ArtistsAdded = 0;
}
/*include(SERVER_ROOT.'/classes/class_user_rank.php');
include(SERVER_ROOT.'/classes/class_user_rank.php');
$Rank = new USER_RANK;
$UploadedRank = $Rank->get_rank('uploaded', $Uploaded);
@ -264,7 +264,7 @@ function check_paranoia_here($Setting) {
$RequestRank = $Rank->get_rank('requests', $RequestsFilled);
$PostRank = $Rank->get_rank('posts', $ForumPosts);
$BountyRank = $Rank->get_rank('bounty', $TotalSpent);
$ArtistsRank = $Rank->get_rank('artists', $ArtistsAdded);*/
$ArtistsRank = $Rank->get_rank('artists', $ArtistsAdded);
if($Downloaded == 0) {
$Ratio = 1;
@ -273,7 +273,7 @@ function check_paranoia_here($Setting) {
} else {
$Ratio = round($Uploaded/$Downloaded, 2);
}
/*$OverallRank = $Rank->overall_score($UploadedRank, $DownloadedRank, $UploadsRank, $RequestRank, $PostRank, $BountyRank, $ArtistsRank, $Ratio);*/
$OverallRank = $Rank->overall_score($UploadedRank, $DownloadedRank, $UploadsRank, $RequestRank, $PostRank, $BountyRank, $ArtistsRank, $Ratio);
?>
<div class="box">