From 4ce16f1898a39fe0a24f3b9ead55a67b648886ba Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 18 Nov 2010 16:54:37 +0800 Subject: [PATCH] Lock.php --- Lock.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Lock.php b/Lock.php index f1b3a08c..15bddba2 100644 --- a/Lock.php +++ b/Lock.php @@ -94,7 +94,17 @@ class Pman_Core_Lock extends Pman // 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(); + } -- 2.39.2