diff --git a/api/v1/clients/client_model.php b/api/v1/clients/client_model.php index 8e822ba8..42321016 100644 --- a/api/v1/clients/client_model.php +++ b/api/v1/clients/client_model.php @@ -67,7 +67,7 @@ if (isset($_POST['client_tax_id_number'])) { } if (isset($_POST['client_abbreviation'])) { - $abbreviation = substr(sanitizeInput($_POST['client_abbreviation']), 0, 6); + $abbreviation = sanitizeInput(substr($_POST['client_abbreviation'], 0, 6)); } elseif ($client_row) { $abbreviation = $client_row['client_abbreviation']; } else {