aboutsummaryrefslogtreecommitdiff
path: root/muamba-widget.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'muamba-widget.tpl.php')
-rw-r--r--muamba-widget.tpl.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/muamba-widget.tpl.php b/muamba-widget.tpl.php
index 06d547b..1c79606 100644
--- a/muamba-widget.tpl.php
+++ b/muamba-widget.tpl.php
@@ -16,7 +16,11 @@ drupal_add_css($path .'/muamba.css');
$content = '';
$output = '';
-if (empty($transaction) && $node->uid != $user->uid) {
+if (!user_is_logged_in()) {
+ print t('You have to be logged in to be able to ask for this item.');
+ return;
+}
+elseif (empty($transaction) && $node->uid != $user->uid) {
$content .= theme('muamba_widget_icon', array('status' => MUAMBA_REQUESTED, 'id' => $node->nid));
}
elseif ($transaction['uid'] == $user->uid) {