diff options
author | Joas Schilling <coding@schilljs.com> | 2019-10-01 18:30:52 +0300 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-10-07 15:03:00 +0300 |
commit | ce417f30c4500da5229b6df471d236251e7b209b (patch) | |
tree | 51da5becc6fe607a76f836af82836a7541e90f6d | |
parent | 197d5339872e40e5b48e34cbc3c1a685735440d8 (diff) |
Don't call basename on null
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | apps/workflowengine/lib/Check/FileName.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Check/FileName.php b/apps/workflowengine/lib/Check/FileName.php index c6afbf7afad..f775227f71c 100644 --- a/apps/workflowengine/lib/Check/FileName.php +++ b/apps/workflowengine/lib/Check/FileName.php @@ -59,7 +59,7 @@ class FileName extends AbstractStringCheck { * @return string */ protected function getActualValue(): string { - return basename($this->path); + return $this->path === null ? '' : basename($this->path); } /** |