From 16cb1ef759f6800453e10570d14098054caec7ce Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 19 Sep 2007 07:22:49 +0000 Subject: [PATCH] accesslib: mark_context_dirty() don't mark it there is no path --- lib/accesslib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index 7ff3b01fd9..344e805444 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -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'); + } } /* -- 2.39.5