diff --git a/themes/finc/templates/record/cover.phtml b/themes/finc/templates/record/cover.phtml
index e557d2210f79a7de886fcd9fde892f794e09b6af..6ee4c1314def4f1e730897354bd89f36958b8d40 100644
--- a/themes/finc/templates/record/cover.phtml
+++ b/themes/finc/templates/record/cover.phtml
@@ -3,7 +3,13 @@
 <?php /* If you want to load covers in lightbox use .recordcover;
   the class .nocover prevents nocover images from loading in lightbox or can be used to hide the images */ ?>
 <?php $alt = $alt ?? $this->transEsc('Cover Image')?>
-<?php $coverId = "cover-" . $driver->getUniqueID() . "-" . time(); ?>
+<?php $id = $driver->getUniqueID() ?>
+<?php if ($id) {
+  $coverId = "cover-$id-" . time();
+} else {
+  $cover = false;
+}
+?>
 <?php if ($cover): ?>
   <?php if ($this->link): ?><a id="<?=$coverId?>" href="<?=$this->escapeHtmlAttr($this->link)?>" tabindex="-1" aria-hidden="true"><?php endif; ?>
   <img alt="<?=$alt?>" <?php if ($linkPreview): ?>data-linkpreview="true" <?php endif; ?>class="recordcover" src="<?=$this->escapeHtmlAttr($cover); ?>" />