Skip to content

Commit

Permalink
Fix server switching not working anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
austinwbest committed Nov 9, 2024
1 parent 1503fd7 commit 6fe3f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/app/www/public/functions/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function apiSetActiveServer($serverId, $serversTable = [])
{
global $database;

$serversTable ??= $database->getServers();
$serversTable = $serversTable ?: $database->getServers();
$_SESSION['activeServerId'] = $serversTable[$serverId]['id'];
$_SESSION['activeServerName'] = $serversTable[$serverId]['name'];
$_SESSION['activeServerUrl'] = rtrim($serversTable[$serverId]['url'], '/');
Expand Down

0 comments on commit 6fe3f37

Please sign in to comment.