diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-12-03 21:15:32 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-12-03 21:15:32 +0100 |
commit | c179167850b6c44679deb9edd4a816243addb52d (patch) | |
tree | a78851d26a4a9eb0db24b96b1f3a7289f8a3724e /feed.php | |
parent | 1b2abcf93c01d372fac2868ee6930c2326b7c914 (diff) | |
download | rpg-c179167850b6c44679deb9edd4a816243addb52d.tar.gz rpg-c179167850b6c44679deb9edd4a816243addb52d.tar.bz2 |
getUserData should really be implemented always... (FS#1272)
... but with this patch DokuWiki will not break completely when left out for
trustExternal() auth backends
darcs-hash:20071203201532-7ad00-72dbc2d16e4c8c09cca9558286164f4d858c19ce.gz
Diffstat (limited to 'feed.php')
-rw-r--r-- | feed.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -236,11 +236,11 @@ function rss_buildItems(&$rss,&$data,$opt){ if($user && $conf['useacl'] && $auth){ $userInfo = $auth->getUserData($user); $item->author = $userInfo['name']; - if($opt['guardmail']) { - //cannot obfuscate because some RSS readers may check validity - $item->authorEmail = $user.'@'.$recent['ip']; - }else{ + if($userInfo && !$opt['guardmail']){ $item->authorEmail = $userInfo['mail']; + }else{ + //cannot obfuscate because some RSS readers may check validity + $item->authorEmail = $user.'@'.$recent['ip']; } }elseif($user){ // this happens when no ACL but some Apache auth is used |