|
@@ -24,7 +24,7 @@
|
|
|
* @package dokeos.survey
|
|
|
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts (if not all) of the code
|
|
|
@author Julio Montoya Armas <gugli100@gmail.com>, Dokeos: Personality Test modification and rewriting large parts of the code
|
|
|
-* @version $Id: survey.lib.php 15875 2008-07-30 23:21:03Z juliomontoya $
|
|
|
+* @version $Id: survey.lib.php 15877 2008-07-31 12:55:34Z elixir_inter $
|
|
|
*
|
|
|
* @todo move this file to inc/lib
|
|
|
* @todo use consistent naming for the functions (save vs store for instance)
|
|
@@ -1001,7 +1001,7 @@ class survey_manager
|
|
|
//foreach ($form_content['answers'] as $key=>$answer) {
|
|
|
for ($i=0;$i<count($form_content['answers']);$i++)
|
|
|
{
|
|
|
- echo $sql = "INSERT INTO $table_survey_question_option (question_id, survey_id, option_text, value,sort) VALUES (
|
|
|
+ $sql = "INSERT INTO $table_survey_question_option (question_id, survey_id, option_text, value,sort) VALUES (
|
|
|
'".Database::escape_string($form_content['question_id'])."',
|
|
|
'".Database::escape_string($form_content['survey_id'])."',
|
|
|
'".Database::escape_string($form_content['answers'][$i])."',
|