Avoid Notices #816
|
@ -46,7 +46,11 @@ class Diaspora_Connection {
|
|||
public function setDiasporaID($id) {
|
||||
$parts = explode('@', $id);
|
||||
$this->user = $parts[0];
|
||||
if (count($parts) > 1) {
|
||||
$this->host = $parts[1];
|
||||
} else {
|
||||
$this->host = '';
|
||||
}
|
||||
}
|
||||
|
||||
public function getDiasporaID() {
|
||||
|
|
Loading…
Reference in a new issue