Skip to content

Commit

Permalink
fix error SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
amma35 committed Jul 17, 2018
1 parent b6f14fd commit fb08eb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/ocslink.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static function showSimpleForItem(CommonDBTM $item) {
&& Session::haveRight("plugin_ocsinventoryng_link", READ)) {
$query = "SELECT *
FROM `glpi_plugin_ocsinventoryng_ocslinks`
WHERE `computers_id` = $items_id" .
WHERE `computers_id` = $items_id " .
getEntitiesRestrictRequest("AND", "glpi_plugin_ocsinventoryng_ocslinks");

$result = $DB->query($query);
Expand Down Expand Up @@ -787,7 +787,7 @@ static function getOCSServerForItem(CommonDBTM $item) {

$query = "SELECT *
FROM `glpi_plugin_ocsinventoryng_ocslinks`
WHERE `computers_id` = " . $item->getID() .
WHERE `computers_id` = " . $item->getID() ." ".
getEntitiesRestrictRequest("AND", "glpi_plugin_ocsinventoryng_ocslinks");

$result = $DB->query($query);
Expand Down

0 comments on commit fb08eb9

Please sign in to comment.