summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/sidebar.block.linked.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/sidebar.block.linked.php b/templates/sidebar.block.linked.php
index 23bcb0c..5a891ea 100644
--- a/templates/sidebar.block.linked.php
+++ b/templates/sidebar.block.linked.php
@@ -64,7 +64,11 @@ if(count($explodedTags) > 0) {
<div id="linked">
<table>
<?php
- $editingMode = ($userid === $logged_on_userid);
+ if(($logged_on_userid != null) && ($userid === $logged_on_userid)) {
+ $editingMode = true;
+ } else {
+ $editingMode = false;
+ }
foreach($explodedTags as $explodedTag) {
echo displayLinkedTags($explodedTag, '>', $userid, $cat_url, $user, $editingMode);
}