From 9192aab595a71a91bda12956b07ba0c624ffe976 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 16 Mar 2012 14:42:01 +0800 Subject: [PATCH] Lock.php --- Lock.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'); -- 2.39.2