temporary workaround to get the right value
2005-11-07 Vincent Untz <vuntz@gnome.org> * foundation.gnome.org/vote/include/election-sql.php: (elec_get_blank_votes_election): temporary workaround to get the right value
This commit is contained in:
parent
0ead7be6c7
commit
d3f8ff0a3e
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-11-07 Vincent Untz <vuntz@gnome.org>
|
||||
|
||||
* foundation.gnome.org/vote/include/election-sql.php:
|
||||
(elec_get_blank_votes_election): temporary workaround to get the right
|
||||
value
|
||||
|
||||
2005-11-07 Vincent Untz <vuntz@gnome.org>
|
||||
|
||||
* foundation.gnome.org/referenda/2005-10/index.wml: add links to the
|
||||
|
|
|
@ -392,8 +392,11 @@ function elec_get_blank_votes_election ($handle, $election_id) {
|
|||
|
||||
$query = "SELECT COUNT(att.id) AS total_blank FROM " . $anon_tokens_table . " AS att, " . $votes_table . " AS vt";
|
||||
$query .= " WHERE att.election_id = '".$escaped_election_id."'";
|
||||
$query .= " AND att.id != vt.anon_id";
|
||||
$query .= " OR (vt.choice_id != '-1' AND att.id = vt.anon_id)";
|
||||
/*
|
||||
$query .= " AND (att.id != vt.anon_id";
|
||||
$query .= " OR (vt.choice_id = '-1' AND att.id = vt.anon_id))";
|
||||
*/
|
||||
$query .= " AND (vt.choice_id = '-1' AND att.id = vt.anon_id)";
|
||||
|
||||
$result = mysql_query ($query, $handle);
|
||||
|
||||
|
|
Loading…
Reference in a new issue