summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-10-01 17:30:52 +0200
committerJoas Schilling <coding@schilljs.com>2019-10-01 17:30:52 +0200
commit0f3de7828eb592eb2a8c5be11dadb61499f9e159 (patch)
tree07ae17df72d494c88a21d26b01b46046b123e6fc /apps/workflowengine
parent7dc5bbae39413e3986bbc35ad512582f073143cb (diff)
downloadnextcloud-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.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);
}
/**