Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-38355_23' of git://github.com/timhunt/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
commit a0b12848a47fec2cc958993dae726213d8d0b717 2 parents 07c65a6 + e421b15
@stronk7 stronk7 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/type/multianswer/renderer.php
View
4 question/type/multianswer/renderer.php
@@ -189,9 +189,9 @@ public function subquestion(question_attempt $qa, question_display_options $opti
}
// Work out a good input field size.
- $size = max(1, strlen(trim($response)) + 1);
+ $size = max(1, textlib::strlen(trim($response)) + 1);
foreach ($subq->answers as $ans) {
- $size = max($size, strlen(trim($ans->answer)));
+ $size = max($size, textlib::strlen(trim($ans->answer)));
}
$size = min(60, round($size + rand(0, $size*0.15)));
// The rand bit is to make guessing harder.
Please sign in to comment.
Something went wrong with that request. Please try again.