diff options
author | Erich Eckner <git@eckner.net> | 2024-11-06 17:25:29 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-11-06 17:25:29 +0100 |
commit | 772647865e0fec1670fa28e4987790e439840ff2 (patch) | |
tree | 194560b21e23a748ddd5dd234ef36733fb5e3b09 /computer-time-limit.php | |
parent | 77df3fead5d7857929bb8e21ef54459f86505212 (diff) | |
download | computer-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.php | 2 |
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; |