MDL-35198 cache: Fixed up key_exists call in cache

This commit is contained in:
Sam Hemelryk 2012-10-16 11:25:02 +08:00
parent 8422094d91
commit b10a5376d1

View File

@ -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);
}
}
}
}