Lock.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 16 Mar 2012 06:45:28 +0000 (14:45 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 16 Mar 2012 06:45:28 +0000 (14:45 +0800)
Lock.php

index 210d608..3e394bb 100644 (file)
--- 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() ;