summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-10-01 17:30:52 +0200
committerBackportbot <backportbot-noreply@rullzer.com>2019-10-07 12:03:00 +0000
commitce417f30c4500da5229b6df471d236251e7b209b (patch)
tree51da5becc6fe607a76f836af82836a7541e90f6d /apps/workflowengine
parent197d5339872e40e5b48e34cbc3c1a685735440d8 (diff)
downloadnextcloud-server-ce417f30c4500da5229b6df471d236251e7b209b.tar.gz
nextcloud-server-ce417f30c4500da5229b6df471d236251e7b209b.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 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);
}
/**