Permalink
Browse files

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

…igation function
  • Loading branch information...
1 parent 1f02086 commit af20b75c5563f62f8205dbbe0fe160d3e7dfa71d arborrow committed Oct 20, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
@@ -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">';

0 comments on commit af20b75

Please sign in to comment.