security/acme-client: fix update of existing cert (regression)

This commit is contained in:
Frank Wall
2020-09-25 22:57:24 +02:00
parent 032a94ab10
commit a08317ab0c
@@ -221,7 +221,7 @@ class LeCertificate extends LeCommon
// Check if cert was previously imported
if (!empty((string)$this->config->certRefId)) {
// Check if the previously imported certificate can still be found
foreach (Config::getInstance()->object()->ca as $cfgCert) {
foreach (Config::getInstance()->object()->cert as $cfgCert) {
// Check if IDs match
if ((string)$this->config->certRefId == (string)$cfgCert->refid) {
$cert_found = true;