Skip to content
Snippets Groups Projects
Commit 54a1f900 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

make function static as it should be, fixes #1986

Closes #1986

Merge request studip/studip!1292
parent c2225295
No related branches found
No related tags found
No related merge requests found
......@@ -163,9 +163,9 @@ class CourseMember extends SimpleORMap implements PrivacyObject
* @param string $order_by
* @return array
*/
public function getMembers(string $course_id, string $sort_status = 'autor', string $order_by = 'nachname asc'): array
public static function getMembers(string $course_id, string $sort_status = 'autor', string $order_by = 'nachname asc'): array
{
[$order, $asc] = explode(' ', $order_by);
list($order, $asc) = explode(' ', $order_by);
if ($order === 'nachname') {
$order_by = "Nachname {$asc},Vorname {$asc}";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment