]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16939 - adding check type exists to avoid PHP notice in build_navigation function...
authorarborrow <arborrow>
Mon, 20 Oct 2008 17:56:11 +0000 (17:56 +0000)
committerarborrow <arborrow>
Mon, 20 Oct 2008 17:56:11 +0000 (17:56 +0000)
lib/weblib.php

index 5b52677dc8582aca538bfbe6b2502e0c27b4c432..eec94562ba008d51ef5449195297e5cf5190f8b3 100644 (file)
@@ -3861,7 +3861,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">';