From 7720fcd6aca1bdc900a36b195defbfea92c5198c Mon Sep 17 00:00:00 2001 From: Derek Kaser <11674153+dkaser@users.noreply.github.com> Date: Tue, 10 Sep 2024 03:11:26 +0000 Subject: [PATCH] fix: certDomains is not always present --- src/usr/local/emhttp/plugins/tailscale/include/webgui-cert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/local/emhttp/plugins/tailscale/include/webgui-cert.php b/src/usr/local/emhttp/plugins/tailscale/include/webgui-cert.php index 8516307..350e278 100644 --- a/src/usr/local/emhttp/plugins/tailscale/include/webgui-cert.php +++ b/src/usr/local/emhttp/plugins/tailscale/include/webgui-cert.php @@ -6,7 +6,7 @@ function refreshWebGuiCert($restartIfChanged = true) $certDomains = $status->CertDomains; - if (count($certDomains) === 0) { + if (count($certDomains ?? array()) === 0) { logmsg("Cannot generate certificate for WebGUI -- HTTPS not enabled for Tailnet."); return; }