Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2021-05-16 20:58:27 +0300
committersualko <klaus@jsxc.org>2021-05-16 20:58:27 +0300
commit675cc93de14fc1d3ce3324f1757cb10c696b485b (patch)
treec7695ed217a401d5186e75ab299960a518c0901b
parentab112af7441e1c7a51756fe58bdb75388737b71d (diff)
fix: php8 type error
-rw-r--r--lib/Controller/ManagedServerController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/ManagedServerController.php b/lib/Controller/ManagedServerController.php
index 1ad6e00..58cd0be 100644
--- a/lib/Controller/ManagedServerController.php
+++ b/lib/Controller/ManagedServerController.php
@@ -135,7 +135,7 @@ class ManagedServerController extends Controller
$this->config->setAppValue(Config::MANAGED_SERVER_STATUS, 'registered');
$this->config->setAppValue(Config::EXTERNAL_SERVICES, implode('|', $responseJSON->externalServices));
- $this->config->setAppValue(Config::ICE_URL, implode(', ', $responseJSON->iceServers->urls));
+ $this->config->setAppValue(Config::ICE_URL, implode(', ', is_array($responseJSON->iceServers->urls) ? $responseJSON->iceServers->urls : []));
$this->config->setAppValue(Config::ICE_USERNAME, $responseJSON->iceServers->username);
$this->config->setAppValue(Config::ICE_SECRET, $responseJSON->iceServers->credential);
$this->config->setAppValue(Config::ICE_CREDENTIAL, '');