Permalink
Browse files

As this page uses the multianswer import format, the require_once sta…

…tements have been updated to fit the new plug-in paths for the import formats.
  • Loading branch information...
1 parent 5276dc4 commit e72a2e6d638ac8d2de30a844a121fde2d64bad39 kaipe committed Jan 1, 2004
Showing with 4 additions and 3 deletions.
  1. +4 −3 mod/quiz/editmultianswer.php
@@ -2,8 +2,8 @@
require_once("../../config.php");
require_once("lib.php");
- require_once("format/default.php");
- require_once("format/multianswer.php");
+ require_once("format.php");
+ require_once("format/multianswer/format.php");
require_once("../../files/mimetypes.php");
if ($form = data_submitted("nomatch")) {
@@ -99,7 +99,8 @@
$parsableanswerdef .= $separator
. '%' . round(100*$subanswer->fraction) . '%';
$parsableanswerdef .= $subanswer->answer;
- if ($subanswer->min || $subanswer->max) {
+ if (isset($subanswer->min) && isset($subanswer->max)
+ and $subanswer->min || $subanswer->max) {
// Special for numerical answers:
$errormargin = $subanswer->answer - $subanswer->min;
$parsableanswerdef .= ":$errormargin";

0 comments on commit e72a2e6

Please sign in to comment.