From e03782efddf11b05d044f9a27f86bf5693e82b45 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Fri, 21 Dec 2012 10:50:07 +1300 Subject: [PATCH] MDL-37263 cache: fixed event invalidation coding error --- cache/classes/loaders.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cache/classes/loaders.php b/cache/classes/loaders.php index 74014c417b0..028a31e18a0 100644 --- a/cache/classes/loaders.php +++ b/cache/classes/loaders.php @@ -1093,6 +1093,10 @@ class cache_application extends cache implements cache_loader_with_locking { $todelete = array(); // Iterate the returned data for the events. foreach ($events as $event => $keys) { + if ($keys === false) { + // There are no keys. + continue; + } // Look at each key and check the timestamp. foreach ($keys as $key => $timestamp) { // If the timestamp of the event is more than or equal to the last invalidation (happened between the last