[Fusionforge-commits] r7685 - branches/Branch_4_8/gforge/www/export

Roland Mas lolando at libremir.placard.fr.eu.org
Mon May 18 18:51:43 CEST 2009


Author: lolando
Date: 2009-05-18 18:51:42 +0200 (Mon, 18 May 2009)
New Revision: 7685

Modified:
   branches/Branch_4_8/gforge/www/export/rss20_news.php
Log:
Fixed SQL query syntax

Modified: branches/Branch_4_8/gforge/www/export/rss20_news.php
===================================================================
--- branches/Branch_4_8/gforge/www/export/rss20_news.php	2009-05-18 16:18:23 UTC (rev 7684)
+++ branches/Branch_4_8/gforge/www/export/rss20_news.php	2009-05-18 16:51:42 UTC (rev 7685)
@@ -16,8 +16,8 @@
 if ($limit > 100) $limit = 100;
 
 if ($group_id) {
-	$where = "group_id=$group_id";
-	$query = "SELECT group_name FROM groups WHERE $where";
+	$where = "AND group_id=$group_id";
+	$query = "SELECT group_name FROM groups WHERE group_id=$group_id";
 	$res = db_query($query,1);
 	$row = db_fetch_array($res);
 	$title = ": ".$row['group_name']." - ";




More information about the Fusionforge-commits mailing list