X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Flocations.php;h=21b3f64176a80cca58f0f75dc8a54559df57aa02;hb=44abddfd180ec27cbd889f4c8c8f8271f6d6d19d;hp=0bae7585fc6469b1bc1813f5fee64fa9c95338a5;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/inventory/manage/locations.php b/inventory/manage/locations.php index 0bae7585..21b3f641 100644 --- a/inventory/manage/locations.php +++ b/inventory/manage/locations.php @@ -33,7 +33,7 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') //first off validate inputs sensible $_POST['loc_code'] = strtoupper($_POST['loc_code']); - if (strlen(db_escape($_POST['loc_code'])) > 7) //check length after conversion + if ((strlen(db_escape($_POST['loc_code'])) > 7) || empty($_POST['loc_code'])) //check length after conversion { $input_error = 1; display_error( _("The location code must be five characters or less long (including converted special chars)."));