From: tjhunt Date: Mon, 30 Oct 2006 16:35:53 +0000 (+0000) Subject: Make General feedback more tolerant of whitespace. Merged from MOODLE_17_STABLE. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=99aa18808fd7f88cb8e97ec9a74ca6a0b2b4922f;p=moodle.git Make General feedback more tolerant of whitespace. Merged from MOODLE_17_STABLE. --- diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index dbf04a2fbd..9a4366288b 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -518,7 +518,7 @@ function quiz_process_options(&$quiz) { $boundary = trim($quiz->feedbackboundaries[$i]); if (!is_numeric($boundary)) { if (strlen($boundary) > 0 && $boundary[strlen($boundary) - 1] == '%') { - $boundary = substr($boundary, 0, -1); + $boundary = trim(substr($boundary, 0, -1)); if (is_numeric($boundary)) { $boundary = $boundary * $quiz->grade / 100.0; } else {