Solved sesskey issue in calculated questions. Bug 2464

(http://moodle.org/bugs/bug.php?op=show&bugid=2464)
This commit is contained in:
stronk7 2005-01-31 16:40:08 +00:00
parent 489de4ae13
commit 2d81101163

View File

@ -252,6 +252,7 @@
$addtable->align = $table->align;
$addtable->data = array($addline);
echo "<form name=\"addform\" method=\"post\" action=\"question.php\">
<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\"/>
<input type=\"hidden\" name=\"regenerateddefid\" value=\"0\"/>
<input type=\"hidden\" name=\"id\" value=\"$question->id\"/>
<input type=\"hidden\" name=\"editdatasets\" value=\"1\"/>";
@ -261,6 +262,7 @@
// Print form with current datasets
if ($table->data) {
echo "<form method=\"post\" action=\"question.php\">
<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\"/>
<input type=\"hidden\" name=\"id\" value=\"$question->id\"/>
<input type=\"hidden\" name=\"editdatasets\" value=\"1\"/>";
print_table($table);