[Fusionforge-commits] r8062 - trunk/gforge/www/my

Roland Mas lolando at libremir.placard.fr.eu.org
Mon Aug 31 17:39:10 CEST 2009


Author: lolando
Date: 2009-08-31 17:39:10 +0200 (Mon, 31 Aug 2009)
New Revision: 8062

Modified:
   trunk/gforge/www/my/bookmark_edit.php
Log:
Ongoing migration to db_query_params()

Modified: trunk/gforge/www/my/bookmark_edit.php
===================================================================
--- trunk/gforge/www/my/bookmark_edit.php	2009-08-31 15:39:00 UTC (rev 8061)
+++ trunk/gforge/www/my/bookmark_edit.php	2009-08-31 15:39:10 UTC (rev 8062)
@@ -44,8 +44,10 @@
 
 site_user_header(array('title'=>_('Edit Bookmark')));
 
-$result = db_query("SELECT * from user_bookmarks where "
-	. "bookmark_id='".$bookmark_id."' and user_id='".user_getid()."'");
+$result = db_query_params ('SELECT * from user_bookmarks where 
+bookmark_id=$1 and user_id=$2',
+			array($bookmark_id,
+				user_getid()));
 if ($result) {
 	$bookmark_url = db_result($result,0,'bookmark_url');
 	$bookmark_title = db_result($result,0,'bookmark_title');




More information about the Fusionforge-commits mailing list