Skip to content

Commit 6f74168

Browse files
authored
Merge pull request #17442 from nextcloud/backport/17359/stable15
[stable15] Don't call basename on null
2 parents 197d533 + ce417f3 commit 6f74168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/workflowengine/lib/Check/FileName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function setFileInfo(IStorage $storage, $path) {
5959
* @return string
6060
*/
6161
protected function getActualValue(): string {
62-
return basename($this->path);
62+
return $this->path === null ? '' : basename($this->path);
6363
}
6464

6565
/**

0 commit comments

Comments
 (0)