Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 588ecf461a776ca11764c1e24bd90a572e7bff76 1 parent c4a5033
thepurpleblob authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/numerical.html
View
4 mod/quiz/numerical.html
@@ -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 ":&nbsp;";
- if (!$question->questiontextformat) {
+ if (!isset($question->questiontextformat)) {
$question->questiontextformat = FORMAT_MOODLE;
}
choose_from_menu(format_text_menu(), "questiontextformat", $question->questiontextformat, "");
Please sign in to comment.
Something went wrong with that request. Please try again.