diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-10-04 11:29:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-04 11:29:14 +0200 |
commit | 7b729c581dea8454aaf00578c365ef78bfdba5b7 (patch) | |
tree | 713b840bf25f74c96e709933506dccd8e2e06b91 /apps | |
parent | 9fb56e233c535015be3128880d0862bbc27c9551 (diff) | |
parent | 0f3de7828eb592eb2a8c5be11dadb61499f9e159 (diff) | |
download | nextcloud-server-7b729c581dea8454aaf00578c365ef78bfdba5b7.tar.gz nextcloud-server-7b729c581dea8454aaf00578c365ef78bfdba5b7.zip |
Merge pull request #17359 from nextcloud/bugfix/noid/dont-call-basename-on-null
Don't call basename on null
Diffstat (limited to 'apps')
-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); } /** |