Skip to content
Browse files

MDL-35198 cache: Fixed up key_exists call in cache

  • Loading branch information...
1 parent 8422094 commit b10a5376d15d068f222ed24f8432001cb5ab8eba Sam Hemelryk committed Oct 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 cache/locks/file/lib.php
View
4 cache/locks/file/lib.php
@@ -203,7 +203,7 @@ public function unlock($key, $ownerid, $forceunlock = false) {
* @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 @@ public function __destruct() {
@unlink($lockfile);
}
}
-}
+}

0 comments on commit b10a537

Please sign in to comment.
Something went wrong with that request. Please try again.