[Fusionforge-commits] r8793 - in trunk/gforge/www: export include

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Feb 10 17:07:27 CET 2010


Author: lolando
Date: 2010-02-10 17:07:27 +0100 (Wed, 10 Feb 2010)
New Revision: 8793

Modified:
   trunk/gforge/www/export/rss_sfnews.php
   trunk/gforge/www/include/features_boxes.php
Log:
PHP notices

Modified: trunk/gforge/www/export/rss_sfnews.php
===================================================================
--- trunk/gforge/www/export/rss_sfnews.php	2010-02-10 15:54:02 UTC (rev 8792)
+++ trunk/gforge/www/export/rss_sfnews.php	2010-02-10 16:07:27 UTC (rev 8793)
@@ -32,7 +32,7 @@
 	xmlns:admin="http://webns.net/mvcb/" >';
 
 function getres ($gid, $l) {
-	if ($id) {
+	if ($gid) {
 		$res = db_query_params ('SELECT forum_id,summary,post_date,details,g.group_id,g.group_name,u.realname
 	FROM news_bytes, groups g,users u
 	WHERE news_bytes.group_id=g.group_id
@@ -70,7 +70,7 @@
 
 $res = getres ($group_id, $limit) ;
 while ($row = db_fetch_array($res)) {
-	print " <rdf:li rdf:resource=\"".util_make_url ('/forum/forum.php?forum_id='.$row[forum_id])."\" />\n";
+	print " <rdf:li rdf:resource=\"".util_make_url ('/forum/forum.php?forum_id='.$row['forum_id'])."\" />\n";
 }
 
 print " </rdf:Seq>\n";
@@ -79,11 +79,11 @@
 
 $res = getres ($group_id, $limit) ;
 while ($row = db_fetch_array($res)) {
-	print "\n <item rdf:about=\"".util_make_url ('/forum/forum.php?forum_id='.$row[forum_id])."\">\n";
+	print "\n <item rdf:about=\"".util_make_url ('/forum/forum.php?forum_id='.$row['forum_id'])."\">\n";
 	print "   <title>".htmlspecialchars($row['summary'])."</title>\n";
 	// if news group, link is main page
 	if ($row['group_id'] != $sys_news_group) {
-		print "   <link>".util_make_url ('/forum/forum.php?forum_id='.$row[forum_id])."</link>\n";
+		print "   <link>".util_make_url ('/forum/forum.php?forum_id='.$row['forum_id'])."</link>\n";
 	} else {
 		print "   <link>".util_make_url ('/')."</link>\n";
 	}

Modified: trunk/gforge/www/include/features_boxes.php
===================================================================
--- trunk/gforge/www/include/features_boxes.php	2010-02-10 15:54:02 UTC (rev 8792)
+++ trunk/gforge/www/include/features_boxes.php	2010-02-10 16:07:27 UTC (rev 8793)
@@ -49,6 +49,8 @@
 	$month = date("Ym",time()-(2*3600*24));
 	$day = date("d",time()-(2*3600*24));
 
+	$return = '' ;
+
 	$res_topdown = db_query_params ('
 		SELECT groups.group_id,
 		groups.group_name,




More information about the Fusionforge-commits mailing list