[foundation-web] Use explicit column names in elec_choices_get



commit f3b14cd472ab9e0b6dc22128ce4946ee8128c5a7
Author: Tobias Mueller <tobiasmue gnome org>
Date:   Sat Jun 6 16:06:06 2009 +0200

    Use explicit column names in elec_choices_get
---
 foundation.gnome.org/vote/include/election-sql.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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";
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]