summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorJames Walker <walkah@walkah.net>2010-05-18 10:09:16 -0400
committerJames Walker <walkah@walkah.net>2010-05-18 10:09:16 -0400
commit6da59fab58b3f517a9e48204faa4f29ceabc4ba9 (patch)
tree9ec8e80c5b71a9ee01eb01c5c8862015f4a5a49e /actions
parent2e808fdc82adc862be12118332d27a36a19123ca (diff)
invalid mbox_sha1sum in the case where users don't have an email address
(reported by pedantic-web.org)
Diffstat (limited to 'actions')
-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);
}