Permalink
Browse files

Bug 1733 fixed : String values must be delimited by single quotes in …

…queries

git-svn-id: http://piwigo.org/svn/trunk@6542 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information...
nikrou
nikrou committed Jun 17, 2010
1 parent 8cdd30a commit a14278f2479529a33afeaf97034164292895b90d
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/include/themes.class.php
@@ -151,7 +151,7 @@ function perform_action($action, $theme_id)
SELECT
id
FROM '.THEMES_TABLE.'
- WHERE id != "'.$theme_id.'"
+ WHERE id != \''.$theme_id.'\'
;';
$result = pwg_query($query);
if (pwg_db_num_rows($result) == 0)
@@ -270,7 +270,7 @@ function set_default_theme($theme_id)
SELECT
user_id
FROM '.USER_INFOS_TABLE.'
- WHERE theme = "'.$default_theme.'"
+ WHERE theme = \''.$default_theme.'\'
;';
$user_ids = array_unique(
array_merge(

0 comments on commit a14278f

Please sign in to comment.