Normalize algorithm being used

This commit is contained in:
Bradley Schofield
2024-09-18 16:30:02 +09:00
parent be3e3790c9
commit e88cfed03a
5 changed files with 11 additions and 11 deletions
@@ -126,7 +126,7 @@ class Certificates extends Action
$certificate = $dbForConsole->findOne('certificates', [Query::equal('domain', [$domain->get()])]);
// If we don't have certificate for domain yet, let's create new document. At the end we save it
if (!$certificate || $certificate->isEmpty()) {
if (empty($certificate) || $certificate->isEmpty()) {
$certificate = new Document();
$certificate->setAttribute('domain', $domain->get());
}