From a5dae49520e7f4d7c42364c1be9907504c29b9c1 Mon Sep 17 00:00:00 2001 From: cweiske Date: Tue, 27 Oct 2009 20:36:43 +0000 Subject: [PATCH] do not error out when user is not logged in git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@439 b3834d28-1941-0410-a4f8-b48e95affb8f --- data/templates/bookmarks-vote.inc.tpl.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/data/templates/bookmarks-vote.inc.tpl.php b/data/templates/bookmarks-vote.inc.tpl.php index 37a58c1..5884284 100644 --- a/data/templates/bookmarks-vote.inc.tpl.php +++ b/data/templates/bookmarks-vote.inc.tpl.php @@ -8,20 +8,23 @@ if (!$GLOBALS['enableVoting']) { return; } -if ($row['hasVoted']) { +if (isset($row['hasVoted']) && !$row['hasVoted']) { $classes = 'vote-badge vote-badge-inactive'; } else { $classes = 'vote-badge'; } echo ''; -if (!$row['hasVoted']) { + +if (isset($row['hasVoted']) && !$row['hasVoted']) { echo '+'; } else { echo '+'; } + echo '' . $row['bVoting'] . ''; -if (!$row['hasVoted']) { + +if (isset($row['hasVoted']) && !$row['hasVoted']) { echo '-'; } else {