diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2022-09-28 14:24:20 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2022-09-28 14:24:20 +0000 |
| commit | e75c08bedd60a6674d22ce3e2ec57b5a5f1d85eb (patch) | |
| tree | 2d9cf000153360bdc9e1841693406f3a3b1d58ae /lib/models/SimpleCollection.class.php | |
| parent | 1e6f3d59c1989dc0da68d3200090cb4768ab3094 (diff) | |
fix for BIESt #1118
Merge request studip/studip!676
Diffstat (limited to 'lib/models/SimpleCollection.class.php')
| -rw-r--r-- | lib/models/SimpleCollection.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/models/SimpleCollection.class.php b/lib/models/SimpleCollection.class.php index 588de1b..26439b2 100644 --- a/lib/models/SimpleCollection.class.php +++ b/lib/models/SimpleCollection.class.php @@ -684,9 +684,9 @@ class SimpleCollection extends StudipArrayObject $func = function ($d1, $d2) use ($sorter, $sort_func, $sort_locale) { do { - $field = current($sorter); - $dir = $field[1] ?? ''; - $field = $field[0] ?? ''; + $current_sorter = current($sorter); + $field = $current_sorter[0]; + $dir = $current_sorter[1] ?? ''; if (!$sort_locale) { $value1 = $d1[$field]; $value2 = $d2[$field]; |
