Skip to content
Snippets Groups Projects
Commit 630b5eac authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed error

parent a5a19a25
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ class HumanVerification
$this->verificators[] = $cookie_verificator;
} catch (Exception $e) {
// If we detected usage of a webdriver
if (!empty($bv_data) && is_array($bv_data) && $bv_data["webdriver"] === true) {
if (!empty($bv_data) && is_array($bv_data) && array_key_exists("webdriver", $bv_data) && $bv_data["webdriver"] === true) {
$this->verificators[] = new WebdriverVerification();
} elseif (!empty($bv_data) && \array_key_exists("csp", $bv_data) && \array_key_exists("error_count", $bv_data["csp"]) && $bv_data["csp"]["error_count"] > 1) {
$this->verificators[] = new IPVerification();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment