mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
Bug 1733 fixed : single quotes in queries
git-svn-id: http://piwigo.org/svn/trunk@6550 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -175,11 +175,11 @@ SELECT
|
||||
}
|
||||
}
|
||||
|
||||
$query = "
|
||||
$query = '
|
||||
DELETE
|
||||
FROM ".THEMES_TABLE."
|
||||
WHERE id= '".$theme_id."'
|
||||
;";
|
||||
FROM '.THEMES_TABLE.'
|
||||
WHERE id= \''.$theme_id.'\'
|
||||
;';
|
||||
pwg_query($query);
|
||||
break;
|
||||
|
||||
@@ -300,7 +300,7 @@ SELECT
|
||||
$clauses = array();
|
||||
if (!empty($id))
|
||||
{
|
||||
$clauses[] = "id = '".$id."'";
|
||||
$clauses[] = 'id = \''.$id.'\'';
|
||||
}
|
||||
if (count($clauses) > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user