changeset 162:cc02c1d6808c

Remove dead code.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 27 Oct 2013 03:21:34 +0200
parents 50032763bc79
children 1386a7a8816c
files usrajax.php
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/usrajax.php	Sun Oct 27 03:21:17 2013 +0200
+++ b/usrajax.php	Sun Oct 27 03:21:34 2013 +0200
@@ -124,21 +124,6 @@
       if (($votekey = stFetchSQLColumn($sql)) !== false)
       {
       }
-      
-
-      $sql = stPrepareSQL("SELECT * FROM entries WHERE id=%d", $entry_id);
-      if (($entry = stFetchSQL($sql)) !== false)
-      {
-        if (($compo = stFetchSQL("SELECT * FROM compos WHERE id=".$entry["compo_id"])) !== false
-          && $compo["voting"] != 0)
-        {
-          stSubmitOneVote(stGetRequestItem("voter_id"), $entry_id, stGetRequestItem("vote"));
-        }
-        else
-          stSetStatus(902, "Voting not enabled on that compo.");
-      }
-      else
-        stSetStatus(902, "No such entry.");
     }
     else
       stSetStatus(902, "No data.");