Changeset 1568
- Timestamp:
- 03/20/08 13:05:39 (4 months ago)
- Files:
-
- devel/lib/templates.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/lib/templates.php
r1528 r1568 1041 1041 $vars[1] = "'town'"; 1042 1042 } 1043 if ($tags = get_records_sql("SELECT tag, count(ident) as numtags FROM `".$CFG->prefix."tags` WHERE access = ' public' and tagtype=".$vars[1]." group by tag order by numtags desc limit 20")) {1043 if ($tags = get_records_sql("SELECT tag, count(ident) as numtags FROM `".$CFG->prefix."tags` WHERE access = 'PUBLIC' and tagtype=".$vars[1]." group by tag order by numtags desc limit 20")) { 1044 1044 $tag_count = 0; 1045 1045 foreach($tags as $tag) { … … 1062 1062 $vars[1] = "20"; 1063 1063 } 1064 if ($tags = get_records_sql("SELECT tag, count(ident) as numtags FROM `".$CFG->prefix."tags` WHERE access = ' public' and tag!='' group by tag having numtags > 1 order by ident desc limit " . $vars[1])) {1064 if ($tags = get_records_sql("SELECT tag, count(ident) as numtags FROM `".$CFG->prefix."tags` WHERE access = 'PUBLIC' and tag!='' group by tag having numtags > 1 order by ident desc limit " . $vars[1])) { 1065 1065 $max = 0; 1066 1066 foreach($tags as $tag) {
