From ae7241be074d61c8313c5ba84348b06507ee2cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 28 Feb 2025 15:12:49 +0100 Subject: [PATCH] bug mit timestamp behomben --- HauptManager/module.php | 4 ++-- library.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HauptManager/module.php b/HauptManager/module.php index d488c02..5971581 100644 --- a/HauptManager/module.php +++ b/HauptManager/module.php @@ -48,10 +48,10 @@ class HauptManager extends IPSModule foreach ($Verbraucher_Liste as $key => $user) { $decodedUser = json_decode(GetValue($user["User_Up"])); - if (isset($decodedUser["Timestamp"]) && (($currentTime - $decodedUser)["Timestamp"]) < 30) { + if (isset($decodedUser["Timestamp"]) && (($currentTime - $decodedUser["Timestamp"])) < 30) { $Verbraucher_Liste_Korr[] = [ - "User" => json_decode(GetValue($user["User_Up"])), + "User" => $decodedUser, "Sendback" => $user["User_Down"] ]; diff --git a/library.json b/library.json index 9e3dd8d..20a2a8a 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.123", + "version": "1.124", "build": 0, "date": 0 } \ No newline at end of file