diff options
-rw-r--r-- | lib/frontend.php | 7 |
1 files changed, 6 insertions, 1 deletions
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", [ |