Bug 1733 fixed : merge from trunk
String values must be delimited by single quotes in queries git-svn-id: http://piwigo.org/svn/branches/2.1@6543 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
2a6e5d0a43
commit
6067c4ef2b
1 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ INSERT INTO '.THEMES_TABLE.'
|
||||||
SELECT
|
SELECT
|
||||||
id
|
id
|
||||||
FROM '.THEMES_TABLE.'
|
FROM '.THEMES_TABLE.'
|
||||||
WHERE id != "'.$theme_id.'"
|
WHERE id != \''.$theme_id.'\'
|
||||||
;';
|
;';
|
||||||
$result = pwg_query($query);
|
$result = pwg_query($query);
|
||||||
if (pwg_db_num_rows($result) == 0)
|
if (pwg_db_num_rows($result) == 0)
|
||||||
|
@ -270,7 +270,7 @@ DELETE
|
||||||
SELECT
|
SELECT
|
||||||
user_id
|
user_id
|
||||||
FROM '.USER_INFOS_TABLE.'
|
FROM '.USER_INFOS_TABLE.'
|
||||||
WHERE theme = "'.$default_theme.'"
|
WHERE theme = \''.$default_theme.'\'
|
||||||
;';
|
;';
|
||||||
$user_ids = array_unique(
|
$user_ids = array_unique(
|
||||||
array_merge(
|
array_merge(
|
||||||
|
|
Loading…
Add table
Reference in a new issue