summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 . ',' .