Browse Source

Diaspora - set host to empty if it doesn't exist.

pull/816/head
Philipp Holzer 2 years ago
parent
commit
59fe5be987
No known key found for this signature in database GPG Key ID: 517BE60E2CE5C8A5
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      diaspora/Diaspora_Connection.php

+ 5
- 1
diaspora/Diaspora_Connection.php View File

@ -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() {


Loading…
Cancel
Save