MDL-69129 report: Limit config changes report sort direction values

This commit is contained in:
Michael Hawkins
2020-07-06 10:11:39 +08:00
committed by Andrew Nicols
parent dca95c6fe4
commit 381f45d005
+3
View File
@@ -54,6 +54,9 @@ if (!isset($columns[$sort])) {
$sort = 'lastname';
}
// Sort direction can only be ASC or DESC. Fall back to default (DESC) for invalid values.
$dir = $dir != 'ASC' ? 'DESC' : 'ASC';
foreach ($columns as $column=>$strcolumn) {
if ($sort != $column) {
$columnicon = '';