Skip to content

Commit

Permalink
MDL-35198 cache: Fixed up key_exists call in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Oct 16, 2012
1 parent 8422094 commit b10a537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cache/locks/file/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -234,4 +234,4 @@ public function __destruct() {
@unlink($lockfile);
}
}
}
}

0 comments on commit b10a537

Please sign in to comment.