From dbe75d113b43cae453ac5d3331157927fedd6ae7 Mon Sep 17 00:00:00 2001 From: nikrou Date: Thu, 17 Jun 2010 18:11:11 +0000 Subject: 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 --- admin/include/themes.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'admin/include/themes.class.php') diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php index 73a9e149e..7601f6d60 100644 --- a/admin/include/themes.class.php +++ b/admin/include/themes.class.php @@ -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) { -- cgit v1.2.3