diff options
author | nikrou <nikrou@piwigo.org> | 2010-06-17 13:51:52 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-06-17 13:51:52 +0000 |
commit | 6067c4ef2b3c2abd39f16a3bd6445a5f725c00c2 (patch) | |
tree | 3c177325d0415209850034779877a20f97574b4d /admin/include/themes.class.php | |
parent | 2a6e5d0a436dfb8c2dd6816ee2ee2e1532e46e9c (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | admin/include/themes.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php index 832110e8e..d8e3163c3 100644 --- a/admin/include/themes.class.php +++ b/admin/include/themes.class.php @@ -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( |