We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4934616 commit 585cf90Copy full SHA for 585cf90
src/OpenWOO/Models/BijlageEntity.php
@@ -42,7 +42,7 @@ protected function getAttachmentURL(): string
42
// First try by using the 'woo_Bijlage_id' field.
43
$url = \wp_get_attachment_url($this->getAttachmentObjectID()) ?: '';
44
45
- if ($url !== false) {
+ if (is_string($url) && 0 < strlen($url)) {
46
return $url;
47
}
48
0 commit comments