From 5265fcf110c07f9551eb6e56d33124474cb9e6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 7 Mar 2025 14:59:24 +0100 Subject: [PATCH] bugfix --- Manager/module.php | 2 +- library.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Manager/module.php b/Manager/module.php index 47bf9e9..6203327 100644 --- a/Manager/module.php +++ b/Manager/module.php @@ -270,7 +270,7 @@ class Manager extends IPSModule // Jedem user den höheren der beiden werte aus minimalwert oder vergebenem zuteilen if($leistung <= $remainingPower){ $leistung = max($leistung, $minimalleitsung); - }else{ + }elseif($remainingPower <= $minimalleitsung){ $leistung = min($leistung, $minimalleitsung); } diff --git a/library.json b/library.json index 66eeab7..b7ab3be 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.252", + "version": "1.253", "build": 0, "date": 0 } \ No newline at end of file