From 4e8b87edf67f24fcb835c31ca40b10275a1dae02 Mon Sep 17 00:00:00 2001 From: FOSSBilling Bot <121974958+fossbilling-bot@users.noreply.github.com> Date: Thu, 24 Apr 2025 16:45:11 +0100 Subject: [PATCH] Apply PHP Code Styling & Quality Changes (#2682) Co-authored-by: FOSSBilling Bot --- src/library/FOSSBilling/GeoIP/Reader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/library/FOSSBilling/GeoIP/Reader.php b/src/library/FOSSBilling/GeoIP/Reader.php index e2ac27c80..ef0bb53c0 100644 --- a/src/library/FOSSBilling/GeoIP/Reader.php +++ b/src/library/FOSSBilling/GeoIP/Reader.php @@ -49,7 +49,7 @@ class Reader /** * Handles updating the built-in, default databases. * The databases will only be updated if the files do not exist, or if they are over 7 days old. - * This will only update 1 database per call as it's intended to be run in the background and have the work spread out VS all at once. + * This will only update 1 database per call as it's intended to be run in the background and have the work spread out VS all at once. * * @throws IOException */ @@ -64,6 +64,7 @@ class Reader if (self::shouldUpdate($path)) { try { self::downloadDb($path, $url); + return true; } catch (\Exception $e) { error_log('There was an error while updating the IP address database: ' . $e->getMessage());