Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Fix sql query. references #1807
Browse files Browse the repository at this point in the history
  • Loading branch information
David Durieux committed May 17, 2016
1 parent ff6e110 commit 3fc8d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -5846,7 +5846,7 @@ function changeDisplayPreference($olditemtype, $newitemtype) {
if ($data['cnt'] > 1) {
$queryd = "DELETE FROM `glpi_displaypreferences`
WHERE (`itemtype` = '".$newitemtype."'
OR `itemtype` = '".$olditemtype."' "
OR `itemtype` = '".$olditemtype."') "
. " AND `users_id`='".$data['users_id']."'"
. " AND `num`='".$data['num']."'"
. " LIMIT 1, 100";
Expand Down Expand Up @@ -7679,7 +7679,7 @@ function pluginFusioninventorychangeDisplayPreference($olditemtype, $newitemtype
if ($data['cnt'] > 1) {
$queryd = "DELETE FROM `glpi_displaypreferences`
WHERE (`itemtype` = '".$newitemtype."'
OR `itemtype` = '".$olditemtype."' "
OR `itemtype` = '".$olditemtype."') "
. " AND `users_id`='".$data['users_id']."'"
. " AND `num`='".$data['num']."'"
. " LIMIT 1, 100";
Expand Down

0 comments on commit 3fc8d1f

Please sign in to comment.