mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-41558 cache: Identifiers should never be passed as null to cache::make()
This commit is contained in:
parent
06f6885b27
commit
f5c263836d
1 changed files with 1 additions and 1 deletions
2
cache/classes/definition.php
vendored
2
cache/classes/definition.php
vendored
|
@ -756,7 +756,7 @@ class cache_definition {
|
||||||
*/
|
*/
|
||||||
public function set_identifiers(array $identifiers = array()) {
|
public function set_identifiers(array $identifiers = array()) {
|
||||||
foreach ($this->requireidentifiers as $identifier) {
|
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);
|
throw new coding_exception('Identifier required for cache has not been provided: '.$identifier);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue