// 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();
+ }