Skip to content

Commit

Permalink
same
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Oct 17, 2024
1 parent a811e2e commit 9d0a3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/user.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public static function isBan(): bool {
foreach ($ban_ips as $ip => $datetime) {
if (config::byKey('security::bantime') == -1 || intval($datetime) + intval(config::byKey('security::bantime')) > strtotime('now')) {
if ($ip == $current_ip) {
jeedom::event('ip_ban', false, ['ip' => $ip, 'datetime' => $datetime]);
jeedom::event('ip_ban', false, ['ip' => $ip, 'datetime' => intval($datetime)]);
return true;
}
continue;
Expand Down

0 comments on commit 9d0a3f4

Please sign in to comment.