fix typo causing number of failed attempts on IP whitelist not to be used

This commit is contained in:
Ralf Becker 2021-05-11 11:20:12 +02:00
parent a81dfdcfd8
commit 46e97f8975

View File

@ -1125,7 +1125,7 @@ class Session
$GLOBALS['egw_info']['server']['unsuccessful_ip_whitelist'], $matches) && $GLOBALS['egw_info']['server']['unsuccessful_ip_whitelist'], $matches) &&
($key=array_search($ip, $matches[1])) !== false) ($key=array_search($ip, $matches[1])) !== false)
{ {
$blocked = !empty($matches[3][$key]) && $false_ip > $matches[3][$key]; $blocked = !empty($matches[2][$key]) && $false_ip > $matches[2][$key];
} }
else // else check with general number else // else check with general number
{ {