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 {