From 7595458e516ee26627fbf0743d756fa7cfeef9c1 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 16 Mar 2012 14:45:28 +0800 Subject: [PATCH] Lock.php --- Lock.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lock.php b/Lock.php index 210d6084..3e394bbe 100644 --- a/Lock.php +++ b/Lock.php @@ -105,8 +105,11 @@ class Pman_Core_Lock extends Pman 'on_id' => $_REQUEST['on_id'], 'on_table' => strtolower($_REQUEST['on_table']) )); - $curlock->person_id = $this->authUser->id; + $curlock_ex = clone($curlock); + $curlock->person_id = $this->authUser->id; + + $curlock_ex->whereAdd('person_id != '. $this->authUser->id); $nlocks = $curlock_ex->count() ; -- 2.39.2