projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b61bec1
)
Lock.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 18 Nov 2010 08:54:37 +0000
(16:54 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 18 Nov 2010 08:54:37 +0000
(16:54 +0800)
Lock.php
patch
|
blob
|
history
diff --git
a/Lock.php
b/Lock.php
index
f1b3a08
..
15bddba
100644
(file)
--- a/
Lock.php
+++ b/
Lock.php
@@
-94,7
+94,17
@@
class Pman_Core_Lock extends Pman
// this user owns the lock.
// this user owns the lock.
- // the user who owns the lock is not logged in.. ??
+ $curlock = DB_DataObject::factory('Core_locking');
+ $curlock->setFrom(array(
+ 'on_id' => $_REQUEST['on_id'],
+ 'on_table' => $_REQUEST['on_table']
+ ));
+ $cc = clone($curlock);
+ // the user who owns the lock is not logged in.. ?? - their last
+ $curlock->find();
+ while ($curlock->fetch()) {
+ $curlock->deleteIfLoggedOut();
+ }