From 3467e56dfddddd70341c1b3ef35f472cf0ab54a9 Mon Sep 17 00:00:00 2001
From: "florian.azizian" <florian.azizian@maarch.org>
Date: Mon, 20 Mar 2017 14:35:30 +0100
Subject: [PATCH] FIX #0 check is integer before unlock

---
 core/manage_action.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/core/manage_action.php b/core/manage_action.php
index bfeaf84c762..ee4aa0924b7 100644
--- a/core/manage_action.php
+++ b/core/manage_action.php
@@ -399,8 +399,10 @@ else if(empty($_POST['values']) || !isset($_POST['action_id']) || empty($_POST['
     {
         if(!empty($arr_res[$i]))
         {
-            $docLocker = new docLocker($arr_res[$i]);
-            $docLocker->unlock();
+            if(is_integer($arr_res[$i])){
+                $docLocker = new docLocker($arr_res[$i]);
+                $docLocker->unlock(); 
+            }
             // Save action in history if needed
             if($bool_history=='Y')
             {
-- 
GitLab