MDL-16939 - adding check type exists to avoid PHP notice in build_navigation function

This commit is contained in:
arborrow
2008-10-20 17:47:52 +00:00
parent 1f02086d55
commit af20b75c55
+1 -1
View File
@@ -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">';