aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Check/FileName.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/lib/Check/FileName.php')
-rw-r--r--apps/workflowengine/lib/Check/FileName.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Check/FileName.php b/apps/workflowengine/lib/Check/FileName.php
index 62ee601980b..b17355fc486 100644
--- a/apps/workflowengine/lib/Check/FileName.php
+++ b/apps/workflowengine/lib/Check/FileName.php
@@ -46,7 +46,7 @@ class FileName extends AbstractStringCheck implements IFileCheck {
* @return string
*/
protected function getActualValue(): string {
- return basename($this->path);
+ return $this->path === null ? '' : basename($this->path);
}
/**