From dd3469aeb67631fd49b4f7a78a036187628eda44 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 30 Mar 2024 00:06:05 -0400 Subject: error handling bug again --- lib/frontend.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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", -- cgit v1.2.3