diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-21 10:44:28 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-21 10:44:28 +0000 |
commit | 3c181054dbe60467cc744c447010f525a862c26e (patch) | |
tree | caf19eca71e1339768620b8b2936c12f36dbdac7 /templates/sidebar.block.recent.php | |
parent | 8ca4455dc7add53f496161eda1e86c455d4ce37c (diff) | |
download | semanticscuttle-3c181054dbe60467cc744c447010f525a862c26e.tar.gz semanticscuttle-3c181054dbe60467cc744c447010f525a862c26e.tar.bz2 |
Refactoring: improve debug_mode, constants and other stuff
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@168 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates/sidebar.block.recent.php')
-rw-r--r-- | templates/sidebar.block.recent.php | 7 |
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> '; } |