summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/actions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 26bc18fa2..463186e82 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -194,6 +194,8 @@ function act_auth($act){
* @author Andreas Gohr <andi@splitbrain.org>
*/
function act_edit($act){
+ global $ID;
+
//check if locked by anyone - if not lock for my self
$lockedby = checklock($ID);
if($lockedby) return 'locked';