Explorar o código

error handling bug again

lolcat %!s(int64=2) %!d(string=hai) anos
pai
achega
dd3469aeb6
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      lib/frontend.php

+ 6 - 1
lib/frontend.php

@@ -142,7 +142,12 @@ class frontend{
 		die();
 	}
 	
-	public function drawscrapererror($error, $get, $target, $timetaken = microtime(true)){
+	public function drawscrapererror($error, $get, $target, $timetaken = null){
+		
+		if($timetaken === null){
+			
+			$timetaken = microtime(true);
+		}
 		
 		$this->drawerror(
 			"Shit",