declare intval

This commit is contained in:
johnnyq
2026-05-22 11:26:20 -04:00
parent a02d78bde5
commit 9b77bbdd0b

View File

@@ -27,7 +27,7 @@ if (isset($_POST['add_software_from_template'])) {
$type = sanitizeInput($row['software_template_type']);
$license_type = sanitizeInput($row['software_template_license_type']);
$notes = sanitizeInput($row['software_template_notes']);
$vendor = sanitizeInput($_POST['vendor'] ?? 0);
$vendor = intval($_POST['vendor'] ?? 0);
// Software add query
mysqli_query($mysqli,"INSERT INTO software SET software_name = '$name', software_version = '$version', software_description = '$description', software_type = '$type', software_license_type = '$license_type', software_notes = '$notes', software_vendor_id = $vendor, software_client_id = $client_id");