From: Alan Knowles Date: Thu, 18 Nov 2010 09:40:51 +0000 (+0800) Subject: Lock.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=0f274bcd62df1c1e0177b29bfbb9a62c66167436 Lock.php --- diff --git a/Lock.php b/Lock.php index 6ff0f909..92025d81 100644 --- a/Lock.php +++ b/Lock.php @@ -52,7 +52,7 @@ class Pman_Core_Lock extends Pman { // default action is to attempt to lock.. - $action = empty($action) ? 'lock' : 'unlock'; + $action = empty($action) || $action == 'lock' ? 'lock' : 'unlock'; $this->$action(); }