MDL-68388 grade: Tidy comments and whitespace

This commit is contained in:
Andrew Nicols 2020-05-26 10:15:52 +08:00
parent a7aaf91855
commit 17238ab079
2 changed files with 3 additions and 7 deletions

View file

@ -229,11 +229,8 @@ if (!$edit) {
}
}
// Cache the changed letters.
if (!empty($letters)) {
// For some reason, the cache saves it in the order in which they were entered
// but we really want to order them in descending order so we sort it here.
// Ensure that the letters are correctly sorted.
krsort($letters);
$cache->set($context->id, $letters);
}