mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-18 23:53:39 +02:00
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
This commit is contained in:
@@ -27,7 +27,7 @@ function plugin_install()
|
||||
|
||||
$query = '
|
||||
INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
|
||||
VALUES ("LocalFilesEditor" , "off" , "LocalFiles Editor plugin parameters");';
|
||||
VALUES (\'LocalFilesEditor\' , \'off\' , \'LocalFiles Editor plugin parameters\');';
|
||||
|
||||
pwg_query($query);
|
||||
}
|
||||
@@ -36,7 +36,7 @@ function plugin_uninstall()
|
||||
{
|
||||
global $prefixeTable;
|
||||
|
||||
$query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="LocalFilesEditor" LIMIT 1;';
|
||||
$query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param=\'LocalFilesEditor\' LIMIT 1;';
|
||||
pwg_query($query);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user