diff --git a/Services/Certificate/classes/Template/Action/Clone/class.ilCertificateCloneAction.php b/Services/Certificate/classes/Template/Action/Clone/class.ilCertificateCloneAction.php index 78c233725c2a..de475a046a80 100644 --- a/Services/Certificate/classes/Template/Action/Clone/class.ilCertificateCloneAction.php +++ b/Services/Certificate/classes/Template/Action/Clone/class.ilCertificateCloneAction.php @@ -133,7 +133,9 @@ public function cloneCertificate( ); } - if ($this->fileSystem->has($backgroundImageThumbnail) && + if ( + strlen($newBackgroundImageThumbnail) > 0 && + $this->fileSystem->has($backgroundImageThumbnail) && !$this->fileSystem->hasDir($backgroundImageThumbnail) ) { if ($this->fileSystem->has($newBackgroundImageThumbnail) &&