Skip to content

Commit

Permalink
Fix null error if no default server exist (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis531 authored Nov 13, 2024
1 parent 2021b6f commit 5ccd316
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Routes/Config/ConfigList.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public function __invoke(Request $request, Response $response, $args)



if (!PlaylistMigration::isConverted() && count($config_list) &&
if (!PlaylistMigration::isConverted() &&
count($config_list) &&
\Config::get()->OPENCAST_DEFAULT_SERVER != -1 &&
version_compare(
OCConfig::getOCBaseVersion(\Config::get()->OPENCAST_DEFAULT_SERVER),
'16',
Expand Down

0 comments on commit 5ccd316

Please sign in to comment.