aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions_upgrade.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-07-03 12:22:58 +0000
committernikrou <nikrou@piwigo.org>2010-07-03 12:22:58 +0000
commit6656dfb06aaf3d2b0da7625680bb033d4bdf3856 (patch)
tree75e25a80cf9c9c90b6fbc00f19561083c7eb8989 /admin/include/functions_upgrade.php
parentb83df6be6877b167571c68dc71765cd4f979e9e9 (diff)
Bug 1755 fixed : Needs single quotes in queries official plugins
Merge from trunk git-svn-id: http://piwigo.org/svn/branches/2.1@6655 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/functions_upgrade.php')
-rw-r--r--admin/include/functions_upgrade.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/include/functions_upgrade.php b/admin/include/functions_upgrade.php
index b3f4692e6..50150f64a 100644
--- a/admin/include/functions_upgrade.php
+++ b/admin/include/functions_upgrade.php
@@ -86,7 +86,7 @@ function deactivate_non_standard_plugins()
$query = '
SELECT id
FROM '.PREFIX_TABLE.'plugins
-WHERE state = "active"
+WHERE state = \'active\'
AND id NOT IN (\'' . implode('\',\'', $standard_plugins) . '\')
;';
@@ -101,7 +101,7 @@ AND id NOT IN (\'' . implode('\',\'', $standard_plugins) . '\')
{
$query = '
UPDATE '.PREFIX_TABLE.'plugins
-SET state="inactive"
+SET state=\'inactive\'
WHERE id IN (\'' . implode('\',\'', $plugins) . '\')
;';
pwg_query($query);