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
Iterations
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
Container Registry
Model registry
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
Stud.IP
Stud.IP
Commits
e5d23219
Commit
e5d23219
authored
5 months ago
by
David Siegfried
Committed by
Jan-Hendrik Willms
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
prevent php-warnings in CourseNavigation, fixes
#4771
Closes
#4771
Merge request
!3560
parent
a57302ac
No related branches found
No related tags found
1 merge request
!3560
prevent php-warnings in CourseNavigation, fixes #4771
Pipeline
#28108
passed
5 months ago
Stage: build
Stage: checks
Stage: analyse
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/navigation/CourseNavigation.php
+11
-9
11 additions, 9 deletions
lib/navigation/CourseNavigation.php
with
11 additions
and
9 deletions
lib/navigation/CourseNavigation.php
+
11
−
9
View file @
e5d23219
...
@@ -71,16 +71,18 @@ class CourseNavigation extends Navigation
...
@@ -71,16 +71,18 @@ class CourseNavigation extends Navigation
}
}
}
}
foreach
(
$navigations
as
$key
=>
$nav
)
{
if
(
$found
)
{
if
(
foreach
(
$navigations
as
$key
=>
$nav
)
{
$this
->
range
instanceof
Institute
if
(
||
Seminar_Perm
::
get
()
->
have_studip_perm
(
$found
->
getVisibilityPermission
(),
$this
->
range
->
id
)
$this
->
range
instanceof
Institute
)
{
||
Seminar_Perm
::
get
()
->
have_studip_perm
(
$found
->
getVisibilityPermission
(),
$this
->
range
->
id
)
if
(
isset
(
$found
->
metadata
[
'displayname'
]))
{
)
{
$nav
->
setTitle
(
$found
->
getDisplayname
());
if
(
isset
(
$found
->
metadata
[
'displayname'
]))
{
}
$nav
->
setTitle
(
$found
->
getDisplayname
());
}
$this
->
insertSubNavigation
(
$key
,
$nav
,
$where
);
$this
->
insertSubNavigation
(
$key
,
$nav
,
$where
);
}
}
}
}
}
}
}
...
...
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