From f3b14cd472ab9e0b6dc22128ce4946ee8128c5a7 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Sat, 6 Jun 2009 16:06:06 +0200 Subject: [PATCH] Use explicit column names in elec_choices_get --- foundation.gnome.org/vote/include/election-sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundation.gnome.org/vote/include/election-sql.php b/foundation.gnome.org/vote/include/election-sql.php index dd7ba79..c5f3879 100644 --- a/foundation.gnome.org/vote/include/election-sql.php +++ b/foundation.gnome.org/vote/include/election-sql.php @@ -156,7 +156,7 @@ function elec_choices_get ($handle, $election_id) { $escaped_election_id = mysql_real_escape_string ($election_id, $handle); - $query = "SELECT * FROM " . $choices_table; + $query = "SELECT choice, id FROM " . $choices_table; $query .= " WHERE election_id = '".$escaped_election_id."'"; $query .= " ORDER BY id";