diff options
author | Joas Schilling <coding@schilljs.com> | 2019-10-01 17:30:52 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-10-01 17:30:52 +0200 |
commit | 0f3de7828eb592eb2a8c5be11dadb61499f9e159 (patch) | |
tree | 07ae17df72d494c88a21d26b01b46046b123e6fc /apps/workflowengine | |
parent | 7dc5bbae39413e3986bbc35ad512582f073143cb (diff) | |
download | nextcloud-server-0f3de7828eb592eb2a8c5be11dadb61499f9e159.tar.gz nextcloud-server-0f3de7828eb592eb2a8c5be11dadb61499f9e159.zip |
Don't call basename on null
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/workflowengine')
-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 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); } /** |