MDL-69129 report: Limit config changes report sort direction values
This commit is contained in:
committed by
Andrew Nicols
parent
dca95c6fe4
commit
381f45d005
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user