[LON-CAPA-cvs] cvs: loncom /interface lonrss.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 18 May 2006 22:30:11 -0000
albertel Thu May 18 18:30:11 2006 EDT
Modified files:
/loncom/interface lonrss.pm
Log:
- wallpapaering over the fact the 'publish to course announcements' feed aauses a feed named nothing to get created
Index: loncom/interface/lonrss.pm
diff -u loncom/interface/lonrss.pm:1.22 loncom/interface/lonrss.pm:1.23
--- loncom/interface/lonrss.pm:1.22 Thu May 11 13:50:52 2006
+++ loncom/interface/lonrss.pm Thu May 18 18:30:11 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# RSS Feeder
#
-# $Id: lonrss.pm,v 1.22 2006/05/11 17:50:52 albertel Exp $
+# $Id: lonrss.pm,v 1.23 2006/05/18 22:30:11 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -93,7 +93,8 @@
$mode='adm';
}
foreach my $feed (sort(keys(%feednames))) {
- if (($feed!~/^error\:/) && ($feed!~/^feed\_display\_option\_/)) {
+ if ($feed ne ''
+ && ($feed!~/^error\:/) && ($feed!~/^feed\_display\_option\_/)) {
my $feedurl='http://'.$ENV{'HTTP_HOST'}.'/public/'.$udom.'/'.$uname.'/'.$feed.'.rss';
my $htmlurl='http://'.$ENV{'HTTP_HOST'}.'/'.$mode.'/'.$udom.'/'.$uname.'/'.$feed.'_rss.html';
if ($feednames{'feed_display_option_'.$feed} eq 'hidden') {