From: Alan Knowles Date: Fri, 16 Mar 2012 06:38:54 +0000 (+0800) Subject: Lock.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=1bed22963875edcb3d12bf937e32c4424e5566ae Lock.php --- diff --git a/Lock.php b/Lock.php index 25590df0..32f3dac5 100644 --- 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); }