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

index 25590df..32f3dac 100644 (file)
--- a/Lock.php
+++ b/Lock.php
@@ -157,7 +157,7 @@ class Pman_Core_Lock extends Pman
             'person_id' => $this->authUser->id,
         ));
         $id = $curlock->insert();
-        $this->jok($id);
+        $this->jok($ret ? $ret : $id);
         
     }