From 0f4f4adfcb496009aa1913a09e2300a455f7b866 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 25 Jun 2007 22:52:28 +0200 Subject: 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 --- feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'feed.php') 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) { -- cgit v1.2.3