From 772647865e0fec1670fa28e4987790e439840ff2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 6 Nov 2024 17:25:29 +0100 Subject: computer-time-limit.php: check db for whether a host is non-null when querying the times --- computer-time-limit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'computer-time-limit.php') 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; -- cgit v1.2.3-70-g09d2