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; }