Skip to content

Commit

Permalink
Branch check throwing an error when the connection fails
Browse files Browse the repository at this point in the history
  • Loading branch information
austinwbest committed Dec 27, 2024
1 parent 1d94162 commit 2c22ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/app/www/public/pages/starr.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

$test = $starr->testConnection($app, $starrInstance['url'], $starrInstance['apikey']);
$version = $test['responseHeaders']['X-Application-Version'][0];
$branch = $test['response']['branch'];
$branch = $version && is_array($test) && is_array($test['response']) ? $test['response']['branch'] : '';

if ($test['response']['instanceName'] != $starrInstance['name']) {
$proxyDb->updateStarrAppSetting($starrInstance['id'], 'name', $test['response']['instanceName']);
Expand Down

0 comments on commit 2c22ef1

Please sign in to comment.