From 3f64d299106a2025de929461976f91bac86d9436 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 18 Jun 2025 15:03:42 +0200 Subject: [PATCH] log error on empty time stamps in user-logging --- html/SQL.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/SQL.php b/html/SQL.php index 2d2f6d9..48be551 100644 --- a/html/SQL.php +++ b/html/SQL.php @@ -563,6 +563,9 @@ function LogSchichtEingabe($db_link, $HelferID, $SchichtID, $EinzelSchichtID, $A $Bis = $row["Bis"] ?? "-"; $Was = $row["Was"] ?? "-"; $HelferName = $row["Name"] ?? "-"; + if( $Von === "-" and $Bis === "-" ){ + error_log("Leere Zeiten werden geloggt. Parameter logging-Aufruf (HelferID:$HelferID): $HelferID, $SchichtID, $EinzelSchichtID, $Aktion, $AdminID"); + } $logline = date('Y-m-d H:i') . " HelferSchicht: ";