summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-06-25 22:52:28 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-06-25 22:52:28 +0200
commit0f4f4adfcb496009aa1913a09e2300a455f7b866 (patch)
tree25a88993022ffc88962c1fe7bf560db5d97c0616 /feed.php
parent943dedc690b7b8e32e00f7ae3d64e51cfe9a44b2 (diff)
downloadrpg-0f4f4adfcb496009aa1913a09e2300a455f7b866.tar.gz
rpg-0f4f4adfcb496009aa1913a09e2300a455f7b866.tar.bz2
degrade to unauthed user when auth backen unavailable FS#1168
Instead of disabling the whole ACL feature when the auth backend is unavailable just degrade the user to an anonymous user. darcs-hash:20070625205228-7ad00-19cfa3c302b4ee63f0a6562823c5d550f9c9755c.gz
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/feed.php b/feed.php
index 298c20a65..f63d7c498 100644
--- a/feed.php
+++ b/feed.php
@@ -161,7 +161,7 @@ function rssRecentChanges(&$rss,$num,$ltype,$ns,$minor){
$user = @$recent['user']; // the @ spares time repeating lookup
$item->author = '';
- if($user && $conf['useacl']){
+ if($user && $conf['useacl'] && $auth){
$userInfo = $auth->getUserData($user);
$item->author = $userInfo['name'];
if($guardmail) {