From 37a49a23bf640238034b547be845b9bf4d0ecaf8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 5 Feb 2024 20:01:16 +0100 Subject: computer-time-limit.php: append to log --- computer-time-limit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/computer-time-limit.php b/computer-time-limit.php index e673e52..14b30a2 100644 --- a/computer-time-limit.php +++ b/computer-time-limit.php @@ -3,7 +3,7 @@ $db = new SQLite3('../backstage/computer-time-limit/computer-time-limit.sqlite'); function log_to_file($line) { - $handle = fopen('../backstage/computer-time-limit/log', 'w+'); + $handle = fopen('../backstage/computer-time-limit/log', 'a'); fwrite($handle, $line . "\n"); fclose($handle); } -- cgit v1.2.3-70-g09d2