Skip to content
Snippets Groups Projects
Commit 3467e56d authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #0 check is integer before unlock

parent 7fc47719
No related branches found
No related tags found
No related merge requests found
...@@ -399,8 +399,10 @@ else if(empty($_POST['values']) || !isset($_POST['action_id']) || empty($_POST[' ...@@ -399,8 +399,10 @@ else if(empty($_POST['values']) || !isset($_POST['action_id']) || empty($_POST['
{ {
if(!empty($arr_res[$i])) if(!empty($arr_res[$i]))
{ {
$docLocker = new docLocker($arr_res[$i]); if(is_integer($arr_res[$i])){
$docLocker->unlock(); $docLocker = new docLocker($arr_res[$i]);
$docLocker->unlock();
}
// Save action in history if needed // Save action in history if needed
if($bool_history=='Y') if($bool_history=='Y')
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment