mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
accesslib: mark_context_dirty() don't mark it there is no path
This commit is contained in:
parent
2ee469b3b8
commit
16cb1ef759
@ -4975,8 +4975,11 @@ function get_dirty_contexts($time) {
|
||||
*
|
||||
*/
|
||||
function mark_context_dirty($path) {
|
||||
// Trivial (for now?)
|
||||
set_config($path, time(), 'accesslib/dirtycontexts');
|
||||
|
||||
// only if it is a non-empty string
|
||||
if (is_string($path) && $path !== '') {
|
||||
set_config($path, time(), 'accesslib/dirtycontexts');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user