Skip to content

Commit

Permalink
Bug 1733 fixed : String values must be delimited by single quotes in …
Browse files Browse the repository at this point in the history
…queries

git-svn-id: http://piwigo.org/svn/trunk@6542 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
nikrou committed Jun 17, 2010
1 parent 8cdd30a commit a14278f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/include/themes.class.php
Expand Up @@ -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)
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit a14278f

Please sign in to comment.