diff options
author | nikrou <nikrou@piwigo.org> | 2010-07-03 12:20:38 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-07-03 12:20:38 +0000 |
commit | 267c1c63a2e77ce74c41254e2f1a215b1f52e306 (patch) | |
tree | 3a6146693cebcb6a23c239f08ae92d7bcd61b0de /admin/include/functions_upgrade.php | |
parent | dd955526ae97b8f830db2f499ab5c57efe874e5b (diff) |
Bug 1755 : Needs single quotes in queries official plugins
git-svn-id: http://piwigo.org/svn/trunk@6654 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/include/functions_upgrade.php | 4 |
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); |