Avoid Notices #816

Merged
nupplaphil merged 4 commits from issue/6338-fix_notices into 2019.03-RC 2019-02-26 16:24:16 +01:00
Showing only changes of commit 59fe5be987 - Show all commits

View file

@ -46,7 +46,11 @@ class Diaspora_Connection {
public function setDiasporaID($id) { public function setDiasporaID($id) {
$parts = explode('@', $id); $parts = explode('@', $id);
$this->user = $parts[0]; $this->user = $parts[0];
if (count($parts) > 1) {
$this->host = $parts[1]; $this->host = $parts[1];
} else {
$this->host = '';
}
} }
public function getDiasporaID() { public function getDiasporaID() {