فهرست منبع

error handling bug again

lolcat 2 سال پیش
والد
کامیت
dd3469aeb6
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  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",