diff options
Diffstat (limited to 'admin/include/functions_permalinks.php')
-rw-r--r-- | admin/include/functions_permalinks.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/include/functions_permalinks.php b/admin/include/functions_permalinks.php index a61ed32a0..4073970fd 100644 --- a/admin/include/functions_permalinks.php +++ b/admin/include/functions_permalinks.php @@ -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; |