From 3fc8d1fb3569ee9d6e214d206cd1b5e4129b5b48 Mon Sep 17 00:00:00 2001 From: David Durieux Date: Tue, 17 May 2016 15:50:59 +0200 Subject: [PATCH] Fix sql query. references #1807 --- install/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/update.php b/install/update.php index 5b2b982429..f6ffeca677 100644 --- a/install/update.php +++ b/install/update.php @@ -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"; @@ -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";