Bug 1733 fixed : String values must be delimited by single quotes in queries

git-svn-id: http://piwigo.org/svn/trunk@6542 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou 2010-06-17 13:49:24 +00:00
parent 8cdd30a828
commit a14278f247

View file

@ -151,7 +151,7 @@ INSERT INTO '.THEMES_TABLE.'
SELECT
id
FROM '.THEMES_TABLE.'
WHERE id != "'.$theme_id.'"
WHERE id != \''.$theme_id.'\'
;';
$result = pwg_query($query);
if (pwg_db_num_rows($result) == 0)
@ -270,7 +270,7 @@ DELETE
SELECT
user_id
FROM '.USER_INFOS_TABLE.'
WHERE theme = "'.$default_theme.'"
WHERE theme = \''.$default_theme.'\'
;';
$user_ids = array_unique(
array_merge(