summaryrefslogtreecommitdiff
path: root/computer-time-limit.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-11-06 17:25:29 +0100
committerErich Eckner <git@eckner.net>2024-11-06 17:25:29 +0100
commit772647865e0fec1670fa28e4987790e439840ff2 (patch)
tree194560b21e23a748ddd5dd234ef36733fb5e3b09 /computer-time-limit.php
parent77df3fead5d7857929bb8e21ef54459f86505212 (diff)
downloadcomputer-time-limit-772647865e0fec1670fa28e4987790e439840ff2.tar.xz
computer-time-limit.php: check db for whether a host is non-null when querying the times
Diffstat (limited to 'computer-time-limit.php')
-rw-r--r--computer-time-limit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/computer-time-limit.php b/computer-time-limit.php
index 12fcfeb..1fc8f3e 100644
--- a/computer-time-limit.php
+++ b/computer-time-limit.php
@@ -124,7 +124,7 @@ while ($row = $result->fetchArray()) {
$von = strtotime($row['von']);
$bis = $bis + 30*60*(floor($now/60/60/24) - floor($von/60/60/24));
- if (!is_null($host)) {
+ if (!is_null($row['host'])) {
$von = $now;
}
$noch = $bis - $von;