Skip to content
Snippets Groups Projects
Commit cf947d0a authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

prevent php8 warning, fixes #2422

Closes #2422

Merge request studip/studip!1617
parent 49c322bd
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ class DBSchemaVersion implements SchemaVersion
*/
public function get($branch = 0)
{
return $this->versions[$branch];
return $this->versions[$branch] ?? 0;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment