Procházet zdrojové kódy

error handling bug again

lolcat před 2 roky
rodič
revize
dd3469aeb6
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  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",