Kaynağa Gözat

[svn r13921] Fixed shared survey creation date problem (no format given to date())
Minor - Removed notice-level errors

Yannick Warnier 17 yıl önce
ebeveyn
işleme
c2691267a9

+ 1 - 1
main/survey/preview.php

@@ -159,7 +159,7 @@ else
 		}
 	}
 	// selecting the maximum number of pages
-	$sql = "SELECT * FROM $table_survey_question WHERE type='".Database::escape_string('pagebreak')."' AND survey_id='".Database::escape_string($_GET[survey_id])."'";
+	$sql = "SELECT * FROM $table_survey_question WHERE type='".Database::escape_string('pagebreak')."' AND survey_id='".Database::escape_string($_GET['survey_id'])."'";
 	$result = api_sql_query($sql, __FILE__, __LINE__);
 	$numberofpages = mysql_num_rows($result) + 1;
 	// Displaying the form with the questions

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

@@ -189,7 +189,7 @@ class survey_manager
 						'".Database::escape_string('template')."',
 						'".Database::escape_string($values['survey_introduction'])."',
 						'".Database::escape_string($values['survey_thanks'])."',
-						'".date()."',
+						'".date('Y-m-d H:i:s')."',
 						'".$_course['id']."')";
 			$result = api_sql_query($sql, __FILE__, __LINE__);
 			$return	= Database::insert_id();
@@ -963,7 +963,7 @@ class survey_manager
 class question
 {
 	// the html code of the form
-	var $html;
+	public $html;
 
 	/**
 	 * This function does the generic part of any survey question: the question field

+ 2 - 2
main/survey/survey_list.php

@@ -21,7 +21,7 @@
 *	@package dokeos.survey
 * 	@author unknown, the initial survey that did not make it in 1.8 because of bad code
 * 	@author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts of the code
-* 	@version $Id: survey_list.php 13606 2007-10-31 09:31:36Z elixir_inter $
+* 	@version $Id: survey_list.php 13921 2007-12-04 23:18:46Z yannoo $
 *
 * 	@todo use quickforms for the forms
 */
@@ -207,7 +207,7 @@ function display_survey_list()
 
 	// Create a sortable table with survey-data
 	$table = new SortableTable('surveys', 'get_number_of_surveys', 'get_survey_data',2);
-	$table->set_additional_parameters($parameters);
+	$table->set_additional_parameters('');
 	$table->set_header(0, '', false);
 	$table->set_header(1, get_lang('SurveyName'));
 	$table->set_header(2, get_lang('SurveyCode'));