Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-10-01 18:30:52 +0300
committerBackportbot <backportbot-noreply@rullzer.com>2019-10-07 15:03:00 +0300
commitce417f30c4500da5229b6df471d236251e7b209b (patch)
tree51da5becc6fe607a76f836af82836a7541e90f6d
parent197d5339872e40e5b48e34cbc3c1a685735440d8 (diff)
Don't call basename on null
Signed-off-by: Joas Schilling <coding@schilljs.com>
-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);
}
/**