1
0
lolcat 2 сар өмнө
parent
commit
d7d35f02f3
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      scraper/ddg.php

+ 3 - 3
scraper/ddg.php

@@ -497,10 +497,10 @@ class ddg{
 			if(
 				isset($form["attributes"]["id"]) &&
 				$form["attributes"]["id"] == "challenge-form"
-			)
-		}{
+			){
 			
-			throw new Exception("DuckDuckGo returned an image captcha");
+				throw new Exception("DuckDuckGo returned an image captcha");
+			}
 		}
 		
 		foreach(array_reverse($forms) as $form){