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:
parent
73809f0c1d
commit
245b69d645
4 changed files with 8 additions and 22 deletions
|
@ -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'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue