mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 05:41:52 +09:00
Apply PHP Code Styling & Quality Changes (#2682)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
This commit is contained in:
1 parent
04548f56a2
commit
4e8b87edf6
1 file changed
+2
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user