Skip to content
Permalink
Browse files

accesslib: has_capability() - fix warnings about FULLME constant

  • Loading branch information...
martinlanghoff
martinlanghoff committed Sep 19, 2007
1 parent f0d3bb9 commit 62a7a32d796b6a8caa552abe34575adc1589b48d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/accesslib.php
@@ -421,7 +421,7 @@ function has_capability($capability, $context=NULL, $userid=NULL, $doanything=tr
load_all_capabilities();
}
if (FULLME === 'cron' && !isset($USER->access)) {
if (defined('FULLME') && FULLME === 'cron' && !isset($USER->access)) {
//
// In cron, some modules setup a 'fake' $USER,
// ensure we load the appropriate accessdata.

0 comments on commit 62a7a32

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