Navigation Menu

Skip to content

Commit

Permalink
Fix to a bug preventing rss feeds from loading correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
scyrma committed Nov 16, 2007
1 parent d9c7b58 commit d9b9b40
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/accesslib.php
Expand Up @@ -364,7 +364,12 @@ function has_capability($capability, $context, $userid=NULL, $doanything=true) {

// Load dirty contexts list if needed
if (!isset($DIRTYCONTEXTS)) {
$DIRTYCONTEXTS = get_dirty_contexts($USER->access['time']);
if (isset($USER->access['time'])) {
$DIRTYCONTEXTS = get_dirty_contexts($USER->access['time']);
}
else {
$DIRTYCONTEXTS = array();
}
}

// Careful check for staleness...
Expand Down

0 comments on commit d9b9b40

Please sign in to comment.