summaryrefslogtreecommitdiff
path: root/templates/sidebar.block.recent.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sidebar.block.recent.php')
-rw-r--r--templates/sidebar.block.recent.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/sidebar.block.recent.php b/templates/sidebar.block.recent.php
index a128e70..fef85f2 100644
--- a/templates/sidebar.block.recent.php
+++ b/templates/sidebar.block.recent.php
@@ -20,11 +20,12 @@ if ($recentTags && count($recentTags) > 0) {
<?php
$contents = '<p class="tags">';
- if(strlen($user)==0) {
- $cat_url = createURL('tags', '%2$s');
+ if(!isset($user)) {
+ $user = '';
+ $cat_url = createURL('tags', '%2$s');
}
- foreach ($recentTags as $row) {
+ foreach ($recentTags as $row) {
$entries = T_ngettext('bookmark', 'bookmarks', $row['bCount']);
$contents .= '<a href="'. sprintf($cat_url, $user, filter($row['tag'], 'url')) .'" title="'. $row['bCount'] .' '. $entries .'" rel="tag" style="font-size:'. $row['size'] .'">'. filter($row['tag']) .'</a> ';
}