summaryrefslogtreecommitdiff
path: root/computer-time-limit.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-02-05 20:01:16 +0100
committerErich Eckner <git@eckner.net>2024-02-05 20:01:16 +0100
commit37a49a23bf640238034b547be845b9bf4d0ecaf8 (patch)
treed9c8d1e52eeb1517df718ca725fabb815956c574 /computer-time-limit.php
parent6feac56cad562e1e05d33f9d2c551bd7a09b93bf (diff)
downloadcomputer-time-limit-37a49a23bf640238034b547be845b9bf4d0ecaf8.tar.xz
computer-time-limit.php: append to log
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 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);
}