}
// 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(
}
}
+
+
// make a lock..
$curlock = DB_DataObject::factory('Core_locking');