mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-67743 table: Sort direction is an integer
This commit is contained in:
parent
f637640f01
commit
c4bd1858db
@ -1503,7 +1503,7 @@ class flexible_table {
|
||||
$this->sortdata = [];
|
||||
foreach ($sortdata as $sortitem) {
|
||||
if (!array_key_exists($sortitem['sortby'], $this->sortdata)) {
|
||||
$this->sortdata[$sortitem['sortby']] = $sortitem['sortorder'];
|
||||
$this->sortdata[$sortitem['sortby']] = (int) $sortitem['sortorder'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user