diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2011-04-23 15:02:29 -0400 |
|---|---|---|
| committer | Chad Kieffer <ckieffer@gmail.com> | 2011-04-23 15:02:29 -0400 |
| commit | 268f9425d918d14e1839b3e22203a8869093f3f0 (patch) | |
| tree | 3a0676e1fa0b158262e9ae8f0faef0474998b061 /modules/tag/helpers | |
| parent | 07f654c8d9918608c8229404585874ce5aba7ab2 (diff) | |
| parent | a9eb995dd2b64667c300c6193656b6cdfeb4e2a5 (diff) | |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/tag/helpers')
| -rw-r--r-- | modules/tag/helpers/tag.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php index 733215b3..c21104ee 100644 --- a/modules/tag/helpers/tag.php +++ b/modules/tag/helpers/tag.php @@ -48,6 +48,7 @@ class tag_Core { * @return ORM_Iterator of Tag_Model in descending tag count order */ static function popular_tags($count) { + $count = max($count, 1); return ORM::factory("tag") ->order_by("count", "DESC") ->limit($count) |
