diff --git a/post/user/client.php b/post/user/client.php
index 446d31ad..59e5b14b 100644
--- a/post/user/client.php
+++ b/post/user/client.php
@@ -149,7 +149,7 @@ if (isset($_POST['edit_client'])) {
// Logging
logAction("Client", "Edit", "$session_name edited client $name", $client_id, $client_id);
- $_SESSION['alert_message'] = "Client $client_name updated";
+ $_SESSION['alert_message'] = "Client $name updated";
header("Location: " . $_SERVER["HTTP_REFERER"]);
}
diff --git a/post/user/client_model.php b/post/user/client_model.php
index 5cc65906..028d135e 100644
--- a/post/user/client_model.php
+++ b/post/user/client_model.php
@@ -3,10 +3,10 @@ $name = sanitizeInput($_POST['name']);
$type = sanitizeInput($_POST['type']);
$website = preg_replace("(^https?://)", "", sanitizeInput($_POST['website']));
$referral = sanitizeInput($_POST['referral']);
-$rate = floatval($_POST['rate']);
+$rate = floatval($_POST['rate'] ?? 0);
$currency_code = sanitizeInput($_POST['currency_code'] ?? $session_company_currency); // So we dont have to to have a hidden form input if module sales is disabled
$net_terms = intval($_POST['net_terms'] ?? $config_default_net_terms);
-$tax_id_number = sanitizeInput($_POST['tax_id_number']);
+$tax_id_number = sanitizeInput($_POST['tax_id_number'] ?? '');
$abbreviation = sanitizeInput($_POST['abbreviation']);
$notes = sanitizeInput($_POST['notes']);
$lead = intval($_POST['lead'] ?? 0);