Update functions.php

This commit is contained in:
Roman Kelesidis 2025-05-05 19:10:46 +03:00
commit 0e0b41cd84

View file

@ -2222,7 +2222,10 @@ function infoByIP(string $ipAddress, int $port = 0): array
} }
if (empty($data)) { if (empty($data)) {
$data = ['timestamp' => TIMENOW]; $data = [
'response' => false,
'timestamp' => TIMENOW
];
} }
CACHE('bb_ip2countries')->set($cacheName, $data, 1200); CACHE('bb_ip2countries')->set($cacheName, $data, 1200);
} }