aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_category.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-07-05 21:18:45 +0000
committernikrou <nikrou@piwigo.org>2010-07-05 21:18:45 +0000
commitb2d7edfc173228035f9dfadb73caa01e88b2b7e4 (patch)
tree154f59b930b21f43e0cbae7b9dc37502dec0d776 /include/functions_category.inc.php
parent52c568327c190455bce75a9b9f6317d659ef8e6c (diff)
Bug 1763 fixed : [PostgreSQL] double quote used in queries
Merge from trunk git-svn-id: http://piwigo.org/svn/branches/2.1@6665 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 e6ebf5c84..7c4634c3f 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -406,7 +406,7 @@ function get_cat_id_from_permalinks( $permalinks, &$idx )
foreach($permalinks as $permalink)
{
if ( !empty($in) ) $in.=', ';
- $in .= '"'.$permalink.'"';
+ $in .= '\''.$permalink.'\'';
}
$query ='
SELECT cat_id AS id, permalink, 1 AS is_old