Skip to content
Permalink
Browse files

Fix to a bug preventing rss feeds from displaying.

  • Loading branch information...
scyrma
scyrma committed Nov 16, 2007
1 parent 4c68dbf commit 7be3be1bf0821b00623813f0315be8709af768c1
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/accesslib.php
@@ -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...

0 comments on commit 7be3be1

Please sign in to comment.
You can’t perform that action at this time.