[Fusionforge-commits] r10427 - trunk/src/www/survey/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Sep 8 20:22:30 CEST 2010


Author: aljeux
Date: 2010-09-08 20:22:30 +0200 (Wed, 08 Sep 2010)
New Revision: 10427

Modified:
   trunk/src/www/survey/admin/add_question.php
Log:
Fix broken SQL in survey admin code.

Modified: trunk/src/www/survey/admin/add_question.php
===================================================================
--- trunk/src/www/survey/admin/add_question.php	2010-09-08 18:22:24 UTC (rev 10426)
+++ trunk/src/www/survey/admin/add_question.php	2010-09-08 18:22:30 UTC (rev 10427)
@@ -41,8 +41,9 @@
 	$question = getStringFromRequest('question');
 	$question_type = getStringFromRequest('question_type');
 
-	$result = db_query_params ('INSERT INTO survey_questions (group_id,question,question_type) VALUES ($group_id,$1,$2)',
-				   array (htmlspecialchars($question),
+	$result = db_query_params ('INSERT INTO survey_questions (group_id,question,question_type) VALUES ($1,$2,$3)',
+				   array ($group_id,
+						htmlspecialchars($question),
 					  $question_type));
 	if ($result) {
 		$feedback .= _('Question Added');




More information about the Fusionforge-commits mailing list