From 4a500324f2dee71b811571d04aa25adc75e18e92 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sun, 26 Feb 2023 15:08:35 +0000 Subject: [PATCH] Default asset and contact IDs to 0 if blank --- models/scheduled_ticket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/scheduled_ticket.php b/models/scheduled_ticket.php index 3d8d5032..896148d5 100644 --- a/models/scheduled_ticket.php +++ b/models/scheduled_ticket.php @@ -12,12 +12,12 @@ $details = trim(mysqli_real_escape_string($mysqli, $purifier->purify(html_entity $frequency = sanitizeInput($_POST['frequency']); -$asset_id = ""; +$asset_id = "0"; if (isset($_POST['asset'])) { $asset_id = intval($_POST['asset']); } -$contact_id = ""; +$contact_id = "0"; if (isset($_POST['contact'])) { $contact_id = intval($_POST['contact']); }