MDL-49412 Navigation: Remaining behat fixed for nav branch

Behat is passing after this change.

Part of MDL-45774.
This commit is contained in:
Damyon Wiese
2015-04-10 17:19:28 +08:00
committed by Adrian Greeve
parent 8e94fae962
commit 46a2fbc4b7
28 changed files with 73 additions and 48 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ if ($roleid) {
}
}
if ($user->id != $USER->id) {
if (!empty($user) && ($user->id != $USER->id)) {
$PAGE->navigation->extend_for_user($user);
$PAGE->navbar->includesettingsbase = true;
}