diff options
author | nikrou <nikrou@piwigo.org> | 2010-06-17 18:11:11 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-06-17 18:11:11 +0000 |
commit | dbe75d113b43cae453ac5d3331157927fedd6ae7 (patch) | |
tree | 32f261b5fda06b6ac6ccb9cc8a23c706742aa36b /admin/include/languages.class.php | |
parent | 5baa3409e5d3bedcdce35da97c89bd577561165c (diff) |
Bug 1733 fixed : merge from trunk
single quotes in queries
git-svn-id: http://piwigo.org/svn/branches/2.1@6551 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/languages.class.php')
-rw-r--r-- | admin/include/languages.class.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/admin/include/languages.class.php b/admin/include/languages.class.php index 053852154..88b37da36 100644 --- a/admin/include/languages.class.php +++ b/admin/include/languages.class.php @@ -99,11 +99,11 @@ INSERT INTO '.LANGUAGES_TABLE.' break; } - $query = " + $query = ' DELETE - FROM ".LANGUAGES_TABLE." - WHERE id= '".$language_id."' -;"; + FROM '.LANGUAGES_TABLE.' + WHERE id= \''.$language_id.'\' +;'; pwg_query($query); break; @@ -122,8 +122,8 @@ DELETE // Set default language to user who are using this language $query = ' UPDATE '.USER_INFOS_TABLE.' - SET language = "'.get_default_language().'" - WHERE language = "'.$language_id.'" + SET language = \''.get_default_language().'\' + WHERE language = \''.$language_id.'\' ;'; pwg_query($query); @@ -136,7 +136,7 @@ UPDATE '.USER_INFOS_TABLE.' case 'set_default': $query = ' UPDATE '.USER_INFOS_TABLE.' - SET language = "'.$language_id.'" + SET language = \''.$language_id.'\' WHERE user_id = '.$conf['default_user_id'].' ;'; pwg_query($query); |