MDL-46212 questions: add {} whenver vars are put into "" strings
Having had one subtle bug cased be this, I decided to do a search and fix all of these.
This commit is contained in:
@@ -1351,7 +1351,7 @@ class question_attempt {
|
||||
while ($record->questionattemptid != $questionattemptid) {
|
||||
$record = $records->next();
|
||||
if (!$records->valid()) {
|
||||
throw new coding_exception("Question attempt $questionattemptid not found in the database.");
|
||||
throw new coding_exception("Question attempt {$questionattemptid} not found in the database.");
|
||||
}
|
||||
$record = $records->current();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user