[foundation-web] Use explicit column names in elec_choices_get
- From: Tobias Mueller <tobiasmue src gnome org>
- To: svn-commits-list gnome org
- Subject: [foundation-web] Use explicit column names in elec_choices_get
- Date: Sat, 6 Jun 2009 10:15:02 -0400 (EDT)
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]