aboutsummaryrefslogtreecommitdiff
path: root/public/sendfile.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/sendfile.php')
-rw-r--r--public/sendfile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/sendfile.php b/public/sendfile.php
index 7d6517c..c9f9f54 100644
--- a/public/sendfile.php
+++ b/public/sendfile.php
@@ -135,7 +135,7 @@ switch ($type) {
//Get the file type:
if ($file->hasFileAttached()) {
$path_file = $file->getPath();
- } elseif ($file->hasURL()) {
+ } elseif ($file->hasURL() && !empty($file->metadata['url'])) {
$path_file = $file->metadata['url'];
}
} else {