From 0f3de7828eb592eb2a8c5be11dadb61499f9e159 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 1 Oct 2019 17:30:52 +0200 Subject: [PATCH] Don't call basename on null Signed-off-by: Joas Schilling --- apps/workflowengine/lib/Check/FileName.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/workflowengine/lib/Check/FileName.php b/apps/workflowengine/lib/Check/FileName.php index 62ee601980..b17355fc48 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); } /**