diff --git a/install/froxlor.sql b/install/froxlor.sql index 7d4111b7..7db94e0d 100644 --- a/install/froxlor.sql +++ b/install/froxlor.sql @@ -695,7 +695,7 @@ opcache.interned_strings_buffer'), ('panel', 'password_special_char', '!?<>ยง$%+#=@'), ('panel', 'customer_hide_options', ''), ('panel', 'is_configured', '0'), - ('panel', 'version', '0.10.4'), + ('panel', 'version', '0.10.5'), ('panel', 'db_version', '201910200'); diff --git a/install/updates/froxlor/0.10/update_0.10.inc.php b/install/updates/froxlor/0.10/update_0.10.inc.php index 0f58843e..9f0c4279 100644 --- a/install/updates/froxlor/0.10/update_0.10.inc.php +++ b/install/updates/froxlor/0.10/update_0.10.inc.php @@ -452,3 +452,8 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.10.3')) { showUpdateStep("Updating from 0.10.3 to 0.10.4", false); \Froxlor\Froxlor::updateToVersion('0.10.4'); } + +if (\Froxlor\Froxlor::isFroxlorVersion('0.10.4')) { + showUpdateStep("Updating from 0.10.4 to 0.10.5", false); + \Froxlor\Froxlor::updateToVersion('0.10.5'); +} diff --git a/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php b/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php index 34cb19e0..8fc4952b 100644 --- a/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php +++ b/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php @@ -84,6 +84,9 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron ) "); $customer_ssl = $certificates_stmt->fetchAll(\PDO::FETCH_ASSOC); + if (!$customer_ssl) { + $customer_ssl = array(); + } $froxlor_ssl = array(); if (Settings::Get('system.le_froxlor_enabled') == '1') { @@ -93,6 +96,9 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron (`expirationdate` < DATE_ADD(NOW(), INTERVAL 30 DAY) OR `expirationdate` IS NULL) "); $froxlor_ssl = Database::pexecute_first($froxlor_ssl_settings_stmt); + if (!$froxlor_ssl) { + $froxlor_ssl = array(); + } } if (count($customer_ssl) > 0 || count($froxlor_ssl) > 0) { @@ -178,10 +184,10 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron 'id' => null ); - $froxlor_ssl = $needRenew['froxlor_ssl']; + $froxlor_ssl = $needRenew ? $needRenew['froxlor_ssl'] : array(); $cert_mode = 'issue'; - if ($froxlor_ssl) { + if (count($froxlor_ssl) > 0) { $cert_mode = 'renew'; $certrow['id'] = $froxlor_ssl['id']; $certrow['expirationdate'] = $froxlor_ssl['expirationdate']; @@ -236,7 +242,7 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron } // customer domains - $certrows = $needRenew['customer_ssl']; + $certrows = $needRenew ? $needRenew['customer_ssl'] : array(); $cert_mode = 'issue'; foreach ($certrows as $certrow) { diff --git a/lib/Froxlor/Froxlor.php b/lib/Froxlor/Froxlor.php index 2227900f..0b85d0b6 100644 --- a/lib/Froxlor/Froxlor.php +++ b/lib/Froxlor/Froxlor.php @@ -7,7 +7,7 @@ final class Froxlor { // Main version variable - const VERSION = '0.10.4'; + const VERSION = '0.10.5'; // Database version (YYYYMMDDC where C is a daily counter) const DBVERSION = '201910200';