MDL-41558 cache: Identifiers should never be passed as null to cache::make()

This commit is contained in:
Ankit Agarwal
2013-09-03 13:37:50 +08:00
parent 06f6885b27
commit f5c263836d
+1 -1
View File
@@ -756,7 +756,7 @@ class cache_definition {
*/
public function set_identifiers(array $identifiers = array()) {
foreach ($this->requireidentifiers as $identifier) {
if (!array_key_exists($identifier, $identifiers)) {
if (!isset($identifiers[$identifier])) {
throw new coding_exception('Identifier required for cache has not been provided: '.$identifier);
}
}