summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefanie Eckner <stefanie@eckner.net>2023-12-30 14:23:17 +0100
committerStefanie Eckner <stefanie@eckner.net>2023-12-30 14:23:17 +0100
commitd812f760eb6c42f8e380f926901483f9813c09f6 (patch)
tree0ef2639a1854cf187b7215c8ce1f932d8ad8b2d0
parent4319b6b5144bd6b865583412f10f45cbcfc1d025 (diff)
downloadcomputer-time-limit-d812f760eb6c42f8e380f926901483f9813c09f6.tar.xz
wenn keine Zeit mehr übrig, dann abschalten
-rw-r--r--computer-time-limit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/computer-time-limit.php b/computer-time-limit.php
index 1a9daab..24a3d4e 100644
--- a/computer-time-limit.php
+++ b/computer-time-limit.php
@@ -52,6 +52,9 @@ if (array_key_exists('gpg', $_POST)) {
die();
;;
}
+ if ($noch == 0) {
+ $aktiv = 0;
+ }
$db -> exec(
'UPDATE `computer_time`' .
' SET `aktiv`=' . $aktiv . ',' .