Skip to content

Commit

Permalink
Merge branch '28-tag-update'
Browse files Browse the repository at this point in the history
  • Loading branch information
phpfunk committed Mar 14, 2014
2 parents 94353e4 + 242e180 commit 6c0d5a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/models/user_marks_to_tags_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ private function getTagList($user_id, $limit=10, $type)
COUNT(user_marks_to_tags.tag_id) as total,
tags.name, tags.slug
FROM `user_marks_to_tags`
INNER JOIN `users_to_marks` ON users_to_marks.users_to_mark_id = user_marks_to_tags.users_to_mark_id AND users_to_marks.archived_on IS NULL AND users_to_marks.active = '1'
LEFT JOIN `tags` ON user_marks_to_tags.tag_id = tags.tag_id
WHERE user_marks_to_tags.user_id = '" . $user_id . "'
GROUP BY user_marks_to_tags.tag_id ORDER BY " . $order . " DESC LIMIT " . $limit
Expand Down

0 comments on commit 6c0d5a4

Please sign in to comment.