accesslib: mark_context_dirty() don't mark it there is no path

This commit is contained in:
martinlanghoff 2007-09-19 07:22:49 +00:00
parent 2ee469b3b8
commit 16cb1ef759

View File

@ -4975,8 +4975,11 @@ function get_dirty_contexts($time) {
* *
*/ */
function mark_context_dirty($path) { 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');
}
} }
/* /*