diff --git a/app/src/ViewFunctions/FileUrl.php b/app/src/ViewFunctions/FileUrl.php index 7d7ee43..85c5252 100644 --- a/app/src/ViewFunctions/FileUrl.php +++ b/app/src/ViewFunctions/FileUrl.php @@ -22,7 +22,7 @@ class FileUrl extends Url return $this->escape($path); } - if ($path === null || $path === '') { + if ($path === '') { return ''; } diff --git a/app/src/ViewFunctions/ZipUrl.php b/app/src/ViewFunctions/ZipUrl.php index dd1f4a3..0487b51 100644 --- a/app/src/ViewFunctions/ZipUrl.php +++ b/app/src/ViewFunctions/ZipUrl.php @@ -18,7 +18,7 @@ class ZipUrl extends Url { $path = $this->stripLeadingSlashes($path); - if ($path === null || $path === '') { + if ($path === '') { return '?zip=.'; }