mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-10 15:32:29 +01:00
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
This commit is contained in:
1 parent
52c568327c
commit
b2d7edfc17
6 files changed
+10
-10
No files matched your search
@@ -47,7 +47,7 @@ function get_cat_id_from_old_permalink($permalink)
|
||||
SELECT c.id
|
||||
FROM '.OLD_PERMALINKS_TABLE.' op INNER JOIN '.CATEGORIES_TABLE.' c
|
||||
ON op.cat_id=c.id
|
||||
WHERE op.permalink="'.$permalink.'"
|
||||
WHERE op.permalink=\''.$permalink.'\'
|
||||
LIMIT 1';
|
||||
$result = pwg_query($query);
|
||||
$cat_id = null;
|
||||
|
||||
Reference in new issue
Block a user