diff options
author | lolcat <will@lolcat.ca> | 2024-03-30 00:03:41 -0400 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2024-03-30 00:03:41 -0400 |
commit | 0f2f97e5a3b6381566b761d4a6e9451128201b43 (patch) | |
tree | 6c79ed6451a4108ddc8bc0d49183808611fef360 /lib | |
parent | 573a11a7087f5d2948f7de46a6fb34343dab062a (diff) |
error handling bug
Diffstat (limited to 'lib')
-rw-r--r-- | lib/frontend.php | 6 |
1 files changed, 2 insertions, 4 deletions
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 <a href="/about">contact the administrator</a>.', - microtime(true) + 'Your browser, IP or IP range has been blocked from this 4get instance. If this is an error, please <a href="/about">contact the administrator</a>.' ); 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", |