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

Commit

Permalink
Be sure we ave only one result from query
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Sep 22, 2017
1 parent 59f903d commit 8d70299
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inc/inventorycomputerlib.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ function updateComputer($a_computerinventory, $computers_id, $no_history, $setdy
$ios = new Item_OperatingSystem();
$pfos = $a_computerinventory['fusioninventorycomputer']['items_operatingsystems_id'];
$ios->getFromDBByCrit([
'itemtype' => 'Computer',
'items_id' => $computers_id
'itemtype' => 'Computer',
'items_id' => $computers_id,
'operatingsystems_id' => $pfos['operatingsystems_id'],
'operatingsystemarchitectures_id' => $pfos['operatingsystemarchitectures_id']
]);

$input_os = array(
Expand Down

0 comments on commit 8d70299

Please sign in to comment.