From 21e017feae842d269e74fd8047b04e60ed1192c2 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 20 Nov 2025 23:17:46 +0000 Subject: [PATCH] =?UTF-8?q?vers=C3=A3o=206=20aprimorada?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- add_installation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/add_installation.php b/add_installation.php index 25f3c34..d0ade99 100644 --- a/add_installation.php +++ b/add_installation.php @@ -8,9 +8,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $technician_name = trim($_POST['technician_name'] ?? ''); $observations = trim($_POST['observations'] ?? ''); $status = trim($_POST['status'] ?? 'ativo'); - $voltage = trim($_POST['voltage'] ?? null); - $phase_neutral_ground = trim($_POST['phase_neutral_ground'] ?? null); - $breaker_output = trim($_POST['breaker_output'] ?? null); + $voltage = !empty($_POST['voltage']) ? trim($_POST['voltage']) : null; + $phase_neutral_ground = !empty($_POST['phase_neutral_ground']) ? trim($_POST['phase_neutral_ground']) : null; + $breaker_output = !empty($_POST['breaker_output']) ? trim($_POST['breaker_output']) : null; // Validation removed to allow incomplete forms