[foundation-web] Use explicit column name in elec_get_results
- From: Tobias Mueller <tobiasmue src gnome org>
- To: svn-commits-list gnome org
- Subject: [foundation-web] Use explicit column name in elec_get_results
- Date: Sat, 6 Jun 2009 11:55:33 -0400 (EDT)
commit ac50b1afb4f231504c74eaa2a217d3b3bf49a91d
Author: Tobias Mueller <tobiasmue gnome org>
Date: Sat Jun 6 17:43:24 2009 +0200
Use explicit column name in elec_get_results
---
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 c5f3879..09991c3 100644
--- a/foundation.gnome.org/vote/include/election-sql.php
+++ b/foundation.gnome.org/vote/include/election-sql.php
@@ -209,7 +209,7 @@ function elec_get_results ($handle, $election_id) {
$escaped_election_id = mysql_real_escape_string ($election_id, $handle);
- $query = "SELECT * FROM " . $results_table; //FIXME: Don't use wildcards
+ $query = "SELECT result FROM " . $results_table;
$query .= " WHERE election_id = '".$escaped_election_id."'";
$result = mysql_query ($query, $handle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]