MDL-42012 cache: Fix missing return value
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 15 Sep 2020 03:46:31 +0000 (11:46 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 15 Sep 2020 03:46:31 +0000 (11:46 +0800)
cache/disabledlib.php

index 0a2d796..88af42d 100644 (file)
@@ -84,7 +84,7 @@ class cache_disabled extends cache {
             return $this->get_datasource()->load_many_for_cache($keys);
         }
 
             return $this->get_datasource()->load_many_for_cache($keys);
         }
 
-        return $return;
+        return array_combine($keys, array_fill(0, count($keys), false));
     }
 
     /**
     }
 
     /**