From 0f2f97e5a3b6381566b761d4a6e9451128201b43 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 30 Mar 2024 00:03:41 -0400 Subject: error handling bug --- lib/frontend.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/frontend.php b/lib/frontend.php index 68398b5..2b7fea2 100644 --- a/lib/frontend.php +++ b/lib/frontend.php @@ -117,11 +117,9 @@ class frontend{ // bot detected !! apcu_inc("captcha_gen"); - $null = null; $this->drawerror( "Tshh, blocked!", - 'Your browser, IP or IP range has been blocked from this 4get instance. If this is an error, please contact the administrator.', - microtime(true) + 'Your browser, IP or IP range has been blocked from this 4get instance. If this is an error, please contact the administrator.' ); die(); } @@ -144,7 +142,7 @@ class frontend{ die(); } - public function drawscrapererror($error, $get, $target, $timetaken){ + public function drawscrapererror($error, $get, $target, $timetaken = microtime(true)){ $this->drawerror( "Shit", -- cgit v1.2.3