mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Don't call basename on null
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7dc5bbae39
commit
0f3de7828e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue