connect(); $db_check->query("SELECT status from res_view_attachments where attachment_type='response_project' and res_id_master = ".$id); while($line = $db_check->fetch_object()){ if ($line->status == 'TRA' || $line->status == 'A_TRA' ){ return false; } } return true; } /** * $confirm bool true */ $confirm = false; /** * $etapes array Contains only one etap, the status modification */ $etapes = array('empty_error'); function manage_empty_error($arr_id, $history, $id_action, $label_action, $status) { $_SESSION['action_error'] = ''; $result = ''; $new_result = ''; for($i=0; $i $result, 'history_msg' => '', 'newResultId' => $new_result, 'action_status' => $status); } ?>