diff --git a/public/themes/website/1/en/demo/download.html b/public/themes/website/1/en/demo/download.html index 7f66e40..9812370 100755 --- a/public/themes/website/1/en/demo/download.html +++ b/public/themes/website/1/en/demo/download.html @@ -119,7 +119,7 @@
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo" sort="sort desc"} {php} - $dl_file = trim((string)($vo['url'] ?? ($vo['thumbnail']['url'] ?? ''))); + $dl_file = !empty($vo['url']) ? $vo['url'] : ($vo['thumbnail']['url'] ?? ''); $has_dl = $dl_file !== ''; {/php}
diff --git a/public/themes/website/1/zh/demo/download.html b/public/themes/website/1/zh/demo/download.html index 9859a47..da4b199 100755 --- a/public/themes/website/1/zh/demo/download.html +++ b/public/themes/website/1/zh/demo/download.html @@ -119,7 +119,7 @@
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo" sort="sort desc"} {php} - $dl_file = trim((string)($vo['url'] ?? ($vo['thumbnail']['url'] ?? ''))); + $dl_file = !empty($vo['url']) ? $vo['url'] : ($vo['thumbnail']['url'] ?? ''); $has_dl = $dl_file !== ''; {/php}