]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
allow vote changes
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 2 Nov 2009 09:36:23 +0000 (09:36 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 2 Nov 2009 09:36:23 +0000 (09:36 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@495 b3834d28-1941-0410-a4f8-b48e95affb8f

tests/VoteTest.php
www/vote.php

index cb50aad2ef9780ecbad4232925be02bcdae8b48f..032ec29114791e653228e681e21d85a445aed291 100644 (file)
@@ -443,7 +443,7 @@ class VoteTest extends TestBase
 
 
     /**
-     * Verify that changing the vote from postitive to positive
+     * Verify that changing the vote from negative to negative
      * has no strange effects
      *
      * @return void
index 406b7d04c5cb54647c6d608a9935c2c179e5c5dc..20e77fc19b78f680bdde56361ed40d8356a31916 100644 (file)
@@ -57,13 +57,6 @@ if (!isset($GLOBALS['lastUrl']) || $GLOBALS['lastUrl'] == '') {
 $from = $GLOBALS['lastUrl'];
 
 
-if ($vs->hasVoted($bookmark, $user)) {
-    //already voted
-    header('HTTP/1.0 412 Precondition failed');
-    echo 'Bookmark has been already voted for';
-    exit(6);
-}
-
 $vs->vote($bookmark, $user, $type == 'for' ? 1 : -1);
 
 if (isset($GLOBALS['ajaxRequest']) && $GLOBALS['ajaxRequest']) {