Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Oct 24, 2021
2 parents 8d80635 + 18d1bf2 commit d9ffb1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Categories/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private function getTrackCount($tagId)
$allFiles = $this->tagManager->getObjectIdsForTags($tagId);

$sql = $this->db->getQueryBuilder();
$sql->select($sql->func()->count('id'))
$sql->selectAlias($sql->func()->count('id'), 'count')
->from('audioplayer_tracks')
->where($sql->expr()->in('file_id', $sql->createNamedParameter($allFiles, IQueryBuilder::PARAM_INT_ARRAY)))
->andWhere($sql->expr()->eq('user_id', $sql->createNamedParameter($this->userId)));
Expand Down Expand Up @@ -164,4 +164,4 @@ public function getCategoryItemCovers($tagId)

return $result;
}
}
}

0 comments on commit d9ffb1a

Please sign in to comment.