From: Alan Knowles Date: Fri, 16 Mar 2012 06:42:01 +0000 (+0800) Subject: Lock.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=9192aab595a71a91bda12956b07ba0c624ffe976 Lock.php --- diff --git a/Lock.php b/Lock.php index 32f3dac5..86ad88d6 100644 --- a/Lock.php +++ b/Lock.php @@ -131,8 +131,8 @@ class Pman_Core_Lock extends Pman } // trash the lock if it belongs to current user.. - $nlocks = $curlock->count(); - if ($nlocks) { + $ulocks = $curlock->count(); + if ($ulocks) { // trash all the locks.. $curlock = DB_DataObject::factory('Core_locking'); $curlock->setFrom(array( @@ -147,6 +147,8 @@ class Pman_Core_Lock extends Pman } } + + // make a lock.. $curlock = DB_DataObject::factory('Core_locking');