mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-35198 cache: Fixed up key_exists call in cache
This commit is contained in:
parent
8422094d91
commit
b10a5376d1
4
cache/locks/file/lib.php
vendored
4
cache/locks/file/lib.php
vendored
@ -203,7 +203,7 @@ class cachelock_file implements cache_lock_interface {
|
||||
* @param string $ownerid
|
||||
*/
|
||||
public function check_state($key, $ownerid) {
|
||||
if (key_exists($key, $this->locks)) {
|
||||
if (array_key_exists($key, $this->locks)) {
|
||||
// The key is locked and we own it.
|
||||
return true;
|
||||
}
|
||||
@ -234,4 +234,4 @@ class cachelock_file implements cache_lock_interface {
|
||||
@unlink($lockfile);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user