From: Philipp Holzer Date: Tue, 26 Feb 2019 13:24:38 +0000 (+0100) Subject: Diaspora - set host to empty if it doesn't exist. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=59fe5be9873bea6ff9b50095e76bd530f54772c3;p=friendica-addons.git Diaspora - set host to empty if it doesn't exist. --- diff --git a/diaspora/Diaspora_Connection.php b/diaspora/Diaspora_Connection.php index 67bc63df..a33bf608 100644 --- a/diaspora/Diaspora_Connection.php +++ b/diaspora/Diaspora_Connection.php @@ -46,7 +46,11 @@ class Diaspora_Connection { public function setDiasporaID($id) { $parts = explode('@', $id); $this->user = $parts[0]; - $this->host = $parts[1]; + if (count($parts) > 1) { + $this->host = $parts[1]; + } else { + $this->host = ''; + } } public function getDiasporaID() {