MDL-35198 cache: Fixed up key_exists call in cache
This commit is contained in:
Vendored
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user