From 267c1c63a2e77ce74c41254e2f1a215b1f52e306 Mon Sep 17 00:00:00 2001 From: nikrou Date: Sat, 3 Jul 2010 12:20:38 +0000 Subject: Bug 1755 : Needs single quotes in queries official plugins git-svn-id: http://piwigo.org/svn/trunk@6654 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_category.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 263e26708..e6ebf5c84 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -431,7 +431,7 @@ SELECT id, permalink, 0 AS is_old { $query=' UPDATE '.OLD_PERMALINKS_TABLE.' SET last_hit=NOW(), hit=hit+1 - WHERE permalink="'.$permalinks[$i].'" AND cat_id='.$cat_id.' + WHERE permalink=\''.$permalinks[$i].'\' AND cat_id='.$cat_id.' LIMIT 1'; pwg_query($query); } -- cgit v1.2.3