fixed parser error, need parentheses

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-05-12 21:02:58 +02:00
parent 7a9456d5ac
commit cc4b481bc9
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
1 changed files with 1 additions and 1 deletions

View File

@ -879,7 +879,7 @@ function zrl_init(App $a) {
$urlparts = parse_url($tmp_str);
$result = Cache::get("gprobe:" . $urlparts["host"]);
if (!is_null($result)) && (in_array($result["network"], array(NETWORK_FEED, NETWORK_PHANTOM))) {
if ((!is_null($result)) && (in_array($result["network"], array(NETWORK_FEED, NETWORK_PHANTOM)))) {
logger("DDoS attempt detected for " . $urlparts["host"] . " by " . $_SERVER["REMOTE_ADDR"] . ". server data: " . print_r($_SERVER, true), LOGGER_DEBUG);
return;
}