MDL-16939 - adding check type exists to avoid PHP notice in build_navigation function
This commit is contained in:
+1
-1
@@ -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">';
|
||||
|
||||
Reference in New Issue
Block a user