diff --git a/lib/accesslib.php b/lib/accesslib.php index 13d94fb75d3..c9495b74c88 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -273,7 +273,7 @@ function has_capability($capability, $context=NULL, $userid=NULL, $doanything=tr global $USER, $CONTEXT, $CFG; if (debugging() && !record_exists('capabilities', 'name', $capability)) { - debugging("Checking for unknown cabability '$capability' in context {$context->id}."); + debugging('Cabability "'.$capability.'" was not found! This should be fixed in code.'); } if (empty($userid) && empty($USER->capabilities)) { // Real user, first time here