aboutsummaryrefslogtreecommitdiffstats
path: root/admin/languages_installed.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-06-17 18:11:11 +0000
committernikrou <nikrou@piwigo.org>2010-06-17 18:11:11 +0000
commitdbe75d113b43cae453ac5d3331157927fedd6ae7 (patch)
tree32f261b5fda06b6ac6ccb9cc8a23c706742aa36b /admin/languages_installed.php
parent5baa3409e5d3bedcdce35da97c89bd577561165c (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/languages_installed.php')
-rw-r--r--admin/languages_installed.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/languages_installed.php b/admin/languages_installed.php
index fb1ee0d27..98c085ed3 100644
--- a/admin/languages_installed.php
+++ b/admin/languages_installed.php
@@ -114,16 +114,16 @@ foreach($missing_language_ids as $language_id)
{
$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);
- $query = "
+ $query = '
DELETE
- FROM ".LANGUAGES_TABLE."
- WHERE id= '".$language_id."'
-;";
+ FROM '.LANGUAGES_TABLE.'
+ WHERE id= \''.$language_id.'\'
+;';
pwg_query($query);
}