浏览代码

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