aboutsummaryrefslogtreecommitdiffstats
path: root/admin/extend_for_templates.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/extend_for_templates.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/extend_for_templates.php')
-rw-r--r--admin/extend_for_templates.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/extend_for_templates.php b/admin/extend_for_templates.php
index 79321191e..a6cd56d92 100644
--- a/admin/extend_for_templates.php
+++ b/admin/extend_for_templates.php
@@ -139,10 +139,10 @@ if (isset($_POST['submit']) and !is_adviser())
$conf['extents_for_templates'] = serialize($replacements);
$tpl_extension = $replacements;
/* ecrire la nouvelle conf */
- $query = "
-UPDATE ".CONFIG_TABLE."
- SET value = '". $conf['extents_for_templates'] ."'
-WHERE param = 'extents_for_templates';";
+ $query = '
+UPDATE '.CONFIG_TABLE.'
+ SET value = \''. $conf['extents_for_templates'] .'\'
+WHERE param = \'extents_for_templates\';';
if (pwg_query($query))
{
array_push($page['infos'],