From 0bda03632fea147f862c813751f59535d5a01072 Mon Sep 17 00:00:00 2001
From: Adrian Lang <lang@cosmocode.de>
Date: Mon, 14 Dec 2009 13:18:31 +0100
Subject: [PATCH] Fix feed author mail after variable name change

Ignore-this: ae4838a9a494746190a1c2c00838fe85

darcs-hash:20091214121831-e4919-e2cd550ff9d486a2681f1958f451c9f24bdaa577.gz
---
 feed.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/feed.php b/feed.php
index a98c8b159..e7ea5808c 100644
--- a/feed.php
+++ b/feed.php
@@ -265,14 +265,14 @@ function rss_buildItems(&$rss,&$data,$opt){
                     $item->authorEmail = $userInfo['mail'];
                 }else{
                     //cannot obfuscate because some RSS readers may check validity
-                    $item->authorEmail = $user.'@'.$recent['ip'];
+                    $item->authorEmail = $user.'@'.$ditem['ip'];
                 }
             }elseif($user){
                 // this happens when no ACL but some Apache auth is used
                 $item->author      = $user;
-                $item->authorEmail = $user.'@'.$recent['ip'];
+                $item->authorEmail = $user.'@'.$ditem['ip'];
             }else{
-                $item->authorEmail = 'anonymous@'.$recent['ip'];
+                $item->authorEmail = 'anonymous@'.$ditem['ip'];
             }
 
             // add category
-- 
GitLab