|
@@ -867,45 +867,45 @@ class tools {
|
|
|
$msg = "";
|
|
$msg = "";
|
|
|
if ($rules_type == "Departure/Arrival_Delay"){
|
|
if ($rules_type == "Departure/Arrival_Delay"){
|
|
|
$ocean_atd_sub_etd = common::check_input($_POST['ocean_atd_sub_etd']);
|
|
$ocean_atd_sub_etd = common::check_input($_POST['ocean_atd_sub_etd']);
|
|
|
- if (ctype_digit($ocean_atd_sub_etd)) {
|
|
|
|
|
|
|
+ if (!empty($ocean_atd_sub_etd) && ctype_digit($ocean_atd_sub_etd)) {
|
|
|
$msg = "Ocean Delayed(ATD-ETD) is not Number";
|
|
$msg = "Ocean Delayed(ATD-ETD) is not Number";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$ocean_ata_sub_eta = common::check_input($_POST['ocean_ata_sub_eta']);
|
|
$ocean_ata_sub_eta = common::check_input($_POST['ocean_ata_sub_eta']);
|
|
|
- if (ctype_digit($ocean_ata_sub_eta)) {
|
|
|
|
|
|
|
+ if (!empty($ocean_ata_sub_eta) && ctype_digit($ocean_ata_sub_eta)) {
|
|
|
$msg = "Ocean Delayed(ATA-ETA) is not Number";
|
|
$msg = "Ocean Delayed(ATA-ETA) is not Number";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$air_atd_sub_etd = common::check_input($_POST['air_atd_sub_etd']);
|
|
$air_atd_sub_etd = common::check_input($_POST['air_atd_sub_etd']);
|
|
|
- if (ctype_digit($air_atd_sub_etd)) {
|
|
|
|
|
|
|
+ if (!empty($air_atd_sub_etd) && ctype_digit($air_atd_sub_etd)) {
|
|
|
$msg = "Air Delayed(ATD-ETD) is not Number";
|
|
$msg = "Air Delayed(ATD-ETD) is not Number";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$air_ata_sub_eta = common::check_input($_POST['air_ata_sub_eta']);
|
|
$air_ata_sub_eta = common::check_input($_POST['air_ata_sub_eta']);
|
|
|
- if (ctype_digit($air_ata_sub_eta)) {
|
|
|
|
|
|
|
+ if (!empty($air_ata_sub_eta) && ctype_digit($air_ata_sub_eta)) {
|
|
|
$msg = "Air Delayed(ATA-ETA) is not Number";
|
|
$msg = "Air Delayed(ATA-ETA) is not Number";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if ($rules_type == "ETD/ETA_Change"){
|
|
if ($rules_type == "ETD/ETA_Change"){
|
|
|
$ocean_etd_old_sub_new = common::check_input($_POST['ocean_etd_old_sub_new']);
|
|
$ocean_etd_old_sub_new = common::check_input($_POST['ocean_etd_old_sub_new']);
|
|
|
- if (ctype_digit($ocean_etd_old_sub_new)) {
|
|
|
|
|
|
|
+ if (!empty($ocean_etd_old_sub_new) && ctype_digit($ocean_etd_old_sub_new)) {
|
|
|
$msg = "Ocean Notify(ETD) is not Number";
|
|
$msg = "Ocean Notify(ETD) is not Number";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$ocean_eta_old_sub_new = common::check_input($_POST['ocean_eta_old_sub_new']);
|
|
$ocean_eta_old_sub_new = common::check_input($_POST['ocean_eta_old_sub_new']);
|
|
|
- if (ctype_digit($ocean_eta_old_sub_new)) {
|
|
|
|
|
|
|
+ if (!empty($ocean_eta_old_sub_new) && ctype_digit($ocean_eta_old_sub_new)) {
|
|
|
$msg = "Ocean Notify(ETA) is not Number";
|
|
$msg = "Ocean Notify(ETA) is not Number";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
$air_etd_old_sub_new = common::check_input($_POST['air_etd_old_sub_new']);
|
|
$air_etd_old_sub_new = common::check_input($_POST['air_etd_old_sub_new']);
|
|
|
- if (ctype_digit($air_etd_old_sub_new)) {
|
|
|
|
|
|
|
+ if (!empty($air_etd_old_sub_new) && ctype_digit($air_etd_old_sub_new)) {
|
|
|
$msg = "Air Notify(ETD) is not Number";
|
|
$msg = "Air Notify(ETD) is not Number";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$air_eta_old_sub_new = common::check_input($_POST['air_eta_old_sub_new']);
|
|
$air_eta_old_sub_new = common::check_input($_POST['air_eta_old_sub_new']);
|
|
|
- if (ctype_digit($air_eta_old_sub_new)) {
|
|
|
|
|
|
|
+ if (!empty($air_eta_old_sub_new) && ctype_digit($air_eta_old_sub_new)) {
|
|
|
$msg = "Air Notify(ETA) is not Number";
|
|
$msg = "Air Notify(ETA) is not Number";
|
|
|
}
|
|
}
|
|
|
|
|
|