diff options
author | Erich Eckner <git@eckner.net> | 2024-02-17 19:33:36 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-02-17 19:33:36 +0100 |
commit | d7a94ac3ba1fa1cf57d482e9f769ca9230b56134 (patch) | |
tree | 55386fad4eeca18487324605fa74347ec87eeb3f /computer-time-limit.php | |
parent | 4ff09b9bbe7ace3f327e0314e193b78dd66f1c04 (diff) | |
download | computer-time-limit-d7a94ac3ba1fa1cf57d482e9f769ca9230b56134.tar.xz |
computer-time-limit.php: $now is not known inside log_to_file()
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 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); } |