We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d35faa66 authored by Mike Sheldon's avatar Mike Sheldon

Remove duplicate recommended artists from profile pages

parent 86136b1a
......@@ -406,7 +406,9 @@ class User {
$artist = new Artist($artist_name);
$similar = $artist->getSimilar(5);
foreach($similar as $sa) {
$recommendedArtists[] = $sa;
if(!array_key_exists($sa['artist'], $recommendedArtists)) {
$recommendedArtists[$sa['artist']] = $sa;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment