From 93c01ad56b2322fc6e059348b7eea01f5eef3785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Thu, 6 Dec 2007 09:43:34 +0100 Subject: [PATCH] version: Only show vote link when logged in --- include/version.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/version.php b/include/version.php index 1caeaa4..37f3d79 100644 --- a/include/version.php +++ b/include/version.php @@ -822,9 +822,13 @@ class version { $oM = new objectManager("voteManager", "Vote"); $oM->setReturnTo($this->objectMakeUrl()); // Votes + if($_SESSION['current']->isLoggedIn()) + $shVoteLink = '   iUserId).'&iVersionId='.$this->iVersionId.'">Vote'; + else + $shVoteLink = ''; echo html_tr(array( "Votes", - vote_count_version_total($this->iVersionId).'   iUserId).'&iVersionId='.$this->iVersionId.'">Vote'), + vote_count_version_total($this->iVersionId).$shVoteLink), "color0"); if($this->sTestedRating != "/" && $this->sTestedRating)