Merge branch 'MDL-69110-master' of git://github.com/junpataleta/moodle

This commit is contained in:
Andrew Nicols 2020-07-06 13:16:38 +08:00
commit 1ffdc39468

View File

@ -1307,7 +1307,7 @@ class flexible_table {
if (array_key_exists($sortby, $sortdata)) {
// This key already exists somewhere. Change its sortorder and bring it to the top.
//$sortorder = $sortdata[$sortby] = $sortorder;
unset($sortdata['sortby'][$sortby]);
unset($sortdata[$sortby]);
}
$sortdata = array_merge([$sortby => $sortorder], $sortdata);
}