Selaa lähdekoodia

error handling bug

lolcat 2 vuotta sitten
vanhempi
sitoutus
0f2f97e5a3
1 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 2 4
      lib/frontend.php

+ 2 - 4
lib/frontend.php

@@ -117,11 +117,9 @@ class frontend{
 			// bot detected !!
 			apcu_inc("captcha_gen");
 			
-			$null = null;
 			$this->drawerror(
 				"Tshh, blocked!",
-				'Your browser, IP or IP range has been blocked from this 4get instance. If this is an error, please <a href="/about">contact the administrator</a>.',
-				microtime(true)
+				'Your browser, IP or IP range has been blocked from this 4get instance. If this is an error, please <a href="/about">contact the administrator</a>.'
 			);
 			die();
 		}
@@ -144,7 +142,7 @@ class frontend{
 		die();
 	}
 	
-	public function drawscrapererror($error, $get, $target, $timetaken){
+	public function drawscrapererror($error, $get, $target, $timetaken = microtime(true)){
 		
 		$this->drawerror(
 			"Shit",