summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-02-17 19:33:36 +0100
committerErich Eckner <git@eckner.net>2024-02-17 19:33:36 +0100
commitd7a94ac3ba1fa1cf57d482e9f769ca9230b56134 (patch)
tree55386fad4eeca18487324605fa74347ec87eeb3f
parent4ff09b9bbe7ace3f327e0314e193b78dd66f1c04 (diff)
downloadcomputer-time-limit-d7a94ac3ba1fa1cf57d482e9f769ca9230b56134.tar.xz
computer-time-limit.php: $now is not known inside log_to_file()
-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 b81081d..0e20559 100644
--- a/computer-time-limit.php
+++ b/computer-time-limit.php
@@ -5,7 +5,7 @@ $now = time();
function log_to_file($line) {
$handle = fopen('../backstage/computer-time-limit/log', 'a');
- fwrite($handle, $now . ' ' . $line . "\n");
+ fwrite($handle, time() . ' ' . $line . "\n");
fclose($handle);
}