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", [