aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-07-03 12:22:58 +0000
committernikrou <nikrou@piwigo.org>2010-07-03 12:22:58 +0000
commit6656dfb06aaf3d2b0da7625680bb033d4bdf3856 (patch)
tree75e25a80cf9c9c90b6fbc00f19561083c7eb8989 /include/functions_category.inc.php
parentb83df6be6877b167571c68dc71765cd4f979e9e9 (diff)
Bug 1755 fixed : Needs single quotes in queries official plugins
Merge from trunk git-svn-id: http://piwigo.org/svn/branches/2.1@6655 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r--include/functions_category.inc.php2
1 files changed, 1 insertions, 1 deletions
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);
}