1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

some other minor changes, nothing big

This commit is contained in:
Karl 'vollmerk' Vollmer 2008-11-29 18:38:46 +00:00
parent 73809f0c1d
commit 245b69d645
4 changed files with 8 additions and 22 deletions

View file

@ -109,6 +109,9 @@ class Tag extends database_object {
$data = self::get_top_tags($type,$object_id);
}
// If nothing is found, then go ahead and return false
if (!is_array($data) OR !count($data)) { return false; }
$this->weight = $data[$this->id]['count'];
if (in_array($GLOBALS['user']->id,$data[$this->id]['users'])) {