Skip to content

Commit

Permalink
merged fixing a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Mar 20, 2007
1 parent 41a89a0 commit c0aa9f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/accesslib.php
Expand Up @@ -1155,7 +1155,11 @@ function load_all_capabilities() {
}
}

$USER->capabilities = merge_role_caps($USER->capabilities, $defcaps);
if (isset($USER->capabilities)) {
$USER->capabilities = merge_role_caps($USER->capabilities, $defcaps);
} else {
$USER->capabilities = $defcaps;
}

} else {
load_notloggedin_role();
Expand Down

0 comments on commit c0aa9f0

Please sign in to comment.