summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-10-04 11:29:14 +0200
committerGitHub <noreply@github.com>2019-10-04 11:29:14 +0200
commit7b729c581dea8454aaf00578c365ef78bfdba5b7 (patch)
tree713b840bf25f74c96e709933506dccd8e2e06b91 /apps
parent9fb56e233c535015be3128880d0862bbc27c9551 (diff)
parent0f3de7828eb592eb2a8c5be11dadb61499f9e159 (diff)
downloadnextcloud-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.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);
}
/**