Correct variable name;

I suspect that a previous bad cut and paste caused this.
This commit is contained in:
Bradley M. Kuhn 2014-02-09 18:46:54 -05:00
parent 5865715712
commit 4e29b1d107

View file

@ -448,7 +448,7 @@ function elec_get_votes_for_anon_token ($handle, $anon_token_id) {
$escaped_anon_token_id = mysql_real_escape_string ($anon_token_id, $handle); $escaped_anon_token_id = mysql_real_escape_string ($anon_token_id, $handle);
$query = "SELECT choice_id,preference FROM " . $votes_table; $query = "SELECT choice_id,preference FROM " . $votes_table;
$query .= " WHERE anon_id = '".$escaped_anon_token_id."'"; $query .= " WHERE anon_id = $anon_token_id";
/* -1 is not a valid value: it's the default value for referenda. /* -1 is not a valid value: it's the default value for referenda.
* It's a blank vote. There was a bug that let this choice be saved in the * It's a blank vote. There was a bug that let this choice be saved in the
* votes, but we don't need it there since we already have the anonymous * votes, but we don't need it there since we already have the anonymous