Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
54a1f900
Commit
54a1f900
authored
2 years ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/models/CourseMember.class.php
+2
-2
2 additions, 2 deletions
lib/models/CourseMember.class.php
with
2 additions
and
2 deletions
lib/models/CourseMember.class.php
+
2
−
2
View file @
54a1f900
...
...
@@ -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
}
"
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment