Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Don't call basename on null
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 1, 2019
commit 0f3de7828eb592eb2a8c5be11dadb61499f9e159
2 changes: 1 addition & 1 deletion apps/workflowengine/lib/Check/FileName.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(IL10N $l, IRequest $request) {
* @return string
*/
protected function getActualValue(): string {
return basename($this->path);
return $this->path === null ? '' : basename($this->path);
}

/**
Expand Down