We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d94162 commit 2c22ef1Copy full SHA for 2c22ef1
root/app/www/public/pages/starr.php
@@ -40,7 +40,7 @@
40
41
$test = $starr->testConnection($app, $starrInstance['url'], $starrInstance['apikey']);
42
$version = $test['responseHeaders']['X-Application-Version'][0];
43
- $branch = $test['response']['branch'];
+ $branch = $version && is_array($test) && is_array($test['response']) ? $test['response']['branch'] : '';
44
45
if ($test['response']['instanceName'] != $starrInstance['name']) {
46
$proxyDb->updateStarrAppSetting($starrInstance['id'], 'name', $test['response']['instanceName']);
0 commit comments