diff options
author | lolcat <will@lolcat.ca> | 2024-03-30 00:06:05 -0400 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2024-03-30 00:06:05 -0400 |
commit | dd3469aeb67631fd49b4f7a78a036187628eda44 (patch) | |
tree | e719282f61514d2ef5046d0b816a0a0a1117f46a | |
parent | 0f2f97e5a3b6381566b761d4a6e9451128201b43 (diff) |
error handling bug again
-rw-r--r-- | lib/frontend.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/frontend.php b/lib/frontend.php index 2b7fea2..4f992ca 100644 --- a/lib/frontend.php +++ b/lib/frontend.php @@ -142,7 +142,12 @@ class frontend{ die(); } - public function drawscrapererror($error, $get, $target, $timetaken = microtime(true)){ + public function drawscrapererror($error, $get, $target, $timetaken = null){ + + if($timetaken === null){ + + $timetaken = microtime(true); + } $this->drawerror( "Shit", |