mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Switched location to use ?? 0 in post for checkbox items that are not checked, this save from creating an extra hidden form field hence cleaner code
This commit is contained in:
@@ -11,4 +11,4 @@ $phone = preg_replace("/[^0-9]/", '',$_POST['phone']);
|
||||
$hours = sanitizeInput($_POST['hours']);
|
||||
$notes = sanitizeInput($_POST['notes']);
|
||||
$contact = intval($_POST['contact']);
|
||||
$location_primary = intval($_POST['location_primary']);
|
||||
$location_primary = intval($_POST['location_primary'] ?? 0);
|
||||
|
||||
Reference in New Issue
Block a user