X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ffoaf.php;h=2f054de0c9f73885fafbb49e00e7808ca2cd9e29;hb=87b8a89aa7b96e63586bdd3b1afb9d43355fd48b;hp=9cb65a885624a56e6b304e5e852ad8b7ef88f242;hpb=17f1ea703dc86ea0791cc9399cdce8d2dc88bfb0;p=quix0rs-gnu-social.git diff --git a/actions/foaf.php b/actions/foaf.php index 9cb65a8856..2f054de0c9 100644 --- a/actions/foaf.php +++ b/actions/foaf.php @@ -95,7 +95,9 @@ class FoafAction extends Action // Would be nice to tell if they were a Person or not (e.g. a #person usertag?) $this->elementStart('Agent', array('rdf:about' => $this->user->uri)); - $this->element('mbox_sha1sum', null, sha1('mailto:' . $this->user->email)); + if ($this->user->email) { + $this->element('mbox_sha1sum', null, sha1('mailto:' . $this->user->email)); + } if ($this->profile->fullname) { $this->element('name', null, $this->profile->fullname); }