diff options
author | Evan Prodromou <evan@status.net> | 2010-06-01 13:51:41 -0700 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-06-01 13:51:41 -0700 |
commit | a5de2152672f49ad95f114033ef6bf00ece9a0ab (patch) | |
tree | c31d031fb8ffb20b8497a80a7cf13958c50f5ad5 /actions/foaf.php | |
parent | 6d8e01ad13dd9bc9e149f43a1eb88671d4737f4d (diff) | |
parent | 634752f0d262b4fb02456889250378fca084cd2e (diff) |
Merge branch 'master' of gitorious.org:statusnet/mainline
Diffstat (limited to 'actions/foaf.php')
-rw-r--r-- | actions/foaf.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/foaf.php b/actions/foaf.php index 9cb65a885..2f054de0c 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); } |