Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8422094
)
MDL-35198 cache: Fixed up key_exists call in cache
author
Sam Hemelryk
<sam@moodle.com>
Tue, 16 Oct 2012 03:25:02 +0000
(11:25 +0800)
committer
Sam Hemelryk
<sam@moodle.com>
Tue, 16 Oct 2012 03:25:02 +0000
(11:25 +0800)
cache/locks/file/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/cache/locks/file/lib.php
b/cache/locks/file/lib.php
index
b726cb7
..
6094c53
100644
(file)
--- a/
cache/locks/file/lib.php
+++ b/
cache/locks/file/lib.php
@@
-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);
}
}
-}
\ No newline at end of file
+}