Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-16939 - adding check type exists to avoid PHP notice in build_nav…

…igation function
  • Loading branch information...
commit af20b75c5563f62f8205dbbe0fe160d3e7dfa71d 1 parent 1f02086
arborrow authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/weblib.php
View
2  lib/weblib.php
@@ -3812,7 +3812,7 @@ function build_navigation($extranavlinks, $cm = null) {
if (!is_array($navlink)) {
continue;
}
- if ($navlink['type'] == 'activity' && !$last && $hideactivitylink) {
+ if (!empty($navlink['type']) && $navlink['type'] == 'activity' && !$last && $hideactivitylink) {
continue;
}
$navigation .= '<li class="first">';
Please sign in to comment.
Something went wrong with that request. Please try again.