Преглед изворни кода

[svn r15877] remove an echo $sql a bit annoying

Eric Marguin пре 16 година
родитељ
комит
5155b04c4e
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      main/survey/survey.lib.php

+ 2 - 2
main/survey/survey.lib.php

@@ -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])."',