diff --git a/modules/visa/send_to_visa.php b/modules/visa/send_to_visa.php index 6eab04d75a6d73b2e3191102541a733f5fb2a158..e05d705c7924a4f8e6553d6a13e22e17af4faf14 100755 --- a/modules/visa/send_to_visa.php +++ b/modules/visa/send_to_visa.php @@ -34,7 +34,7 @@ if (isset($_SESSION['error_visa']) && $_SESSION['error_visa'] <> '') { $visa = new visa(); $curr_visa_wf = $visa->getWorkflow($_SESSION['doc_id'], $_SESSION['current_basket']['coll_id'], 'VISA_CIRCUIT'); -if (count($curr_visa_wf['visa']) == 0 && count($curr_visa_wf['sign']) == 0) { +if (empty($curr_visa_wf['visa']) && empty($curr_visa_wf['sign'])) { $error_visa = true; //IF NO VISA WF CHECK VISA MODEL include_once "modules/entities/class/class_manage_listdiff.php";