[Fusionforge-commits] r8656 - trunk/gforge/www/news

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sat Jan 9 09:59:03 CET 2010


Author: aljeux
Date: 2010-01-09 09:59:02 +0100 (Sat, 09 Jan 2010)
New Revision: 8656

Modified:
   trunk/gforge/www/news/news_utils.php
Log:
Fix SQL query in news/news_utils.php

Modified: trunk/gforge/www/news/news_utils.php
===================================================================
--- trunk/gforge/www/news/news_utils.php	2010-01-09 08:58:55 UTC (rev 8655)
+++ trunk/gforge/www/news/news_utils.php	2010-01-09 08:59:02 UTC (rev 8656)
@@ -273,9 +273,9 @@
 	/*
 		Takes an ID and returns the corresponding forum name
 	*/
-	$result=db_query_params("SELECT summary FROM news_bytes WHERE id=$1", array($id));
+	$result=db_query_params('SELECT summary FROM news_bytes WHERE id=$1', array($id));
 	if (!$result || db_numrows($result) < 1) {
-		return "Not Found";
+		return _('Not Found');
 	} else {
 		return db_result($result, 0, 'summary');
 	}




More information about the Fusionforge-commits mailing list