From 12b67af69c7a3fe4d82b5a30fe0e1eeb6db2fc34 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 30 Mar 2024 00:25:19 -0400 Subject: can you just be fixed you fucking piece of shit --- lib/frontend.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/frontend.php b/lib/frontend.php index 4f992ca..f3810df 100644 --- a/lib/frontend.php +++ b/lib/frontend.php @@ -125,7 +125,12 @@ class frontend{ } } - public function drawerror($title, $error, $timetaken){ + public function drawerror($title, $error, $timetaken = null){ + + if($timetaken === null){ + + $timetaken = microtime(true); + } echo $this->load("search.html", [ -- cgit v1.2.3