mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Added isset() to check for uninitialised field causing notifications.
Category dropdown now displays publishing course + only categories for which the user has editing rights are displayed.
This commit is contained in:
parent
c4a5033db2
commit
588ecf461a
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
<TR valign=top>
|
||||
<TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
|
||||
<TD>
|
||||
<?php choose_from_menu($categories, "category", "$question->category", ""); ?>
|
||||
<?php quiz_category_select_menu($course->id, true, true); ?>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR valign=top>
|
||||
|
@ -43,7 +43,7 @@
|
|||
echo "<div align=right>";
|
||||
print_string("formattexttype");
|
||||
echo ": ";
|
||||
if (!$question->questiontextformat) {
|
||||
if (!isset($question->questiontextformat)) {
|
||||
$question->questiontextformat = FORMAT_MOODLE;
|
||||
}
|
||||
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue