From 39d95d1641c60ff9051d3c0eafcf425a29aecdda Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Tue, 17 Jan 2023 13:58:27 +0100 Subject: [PATCH] Early return when no LE domains remain, #6446 --- server/lib/classes/letsencrypt.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/lib/classes/letsencrypt.inc.php b/server/lib/classes/letsencrypt.inc.php index bce4e7b84a..6a1d2d02ac 100644 --- a/server/lib/classes/letsencrypt.inc.php +++ b/server/lib/classes/letsencrypt.inc.php @@ -406,6 +406,10 @@ class letsencrypt { $app->log("There were " . $le_domain_count . " domains in the domain list. LE only supports 100, so we strip the rest.", LOGLEVEL_WARN); } + if ($le_domain_count == 0) { + return false; + } + // unset useless data unset($subdomains); unset($aliasdomains); -- GitLab