diff vote.inc.php @ 302:828fc30e3c94

Some work on vote backend stuff.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 26 Nov 2013 05:41:57 +0200
parents e387d717cf46
children 7181350076c1
line wrap: on
line diff
--- a/vote.inc.php	Tue Nov 26 05:40:58 2013 +0200
+++ b/vote.inc.php	Tue Nov 26 05:41:57 2013 +0200
@@ -58,8 +58,8 @@
 <?
   // Try fetching previously stored votes
   $sql = stPrepareSQL(
-    "SELECT entry_id,value FROM votes WHERE voter_id=%d",
-    stGetSessionItem("voter_id"));
+    "SELECT entry_id,value FROM votes WHERE key_id=%d",
+    stGetSessionItem("key_id"));
 
   $votes = array();
   if (($res = stExecSQL($sql)) !== false)