summaryrefslogtreecommitdiff
path: root/actions/foaf.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-05-19 12:51:25 -0700
committerBrion Vibber <brion@pobox.com>2010-05-19 12:51:25 -0700
commit7005ef66617b265ddccdd9082c2368bf014a7e83 (patch)
tree52f853c4d47063f0af488a7ff5fb52df50b430bb /actions/foaf.php
parent48dc899acb9a0ac87140353092dab1f5e67753d8 (diff)
parenta39a934dd4a133bad6e76fa9a5018cedcb70225c (diff)
Merge branch 'testing' into 0.9.x
Conflicts: plugins/OpenID/openidlogin.php
Diffstat (limited to 'actions/foaf.php')
-rw-r--r--actions/foaf.php4
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);
}