Skip to content

Commit

Permalink
fix iterator for GLPI 10
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Apr 22, 2024
1 parent 7ce6474 commit f6cd121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/queuedinventory.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ static function cronQueuedInventory($task = null) {
}

$iter = $DB->request(self::getTable(), $condition);
while ($row = $iter->next()) {
foreach ($iter as $row) {

$xml = @simplexml_load_string($row['xml_content'], 'SimpleXMLElement', LIBXML_NOCDATA);
//if load form string failed, update row to set status as error
Expand Down

0 comments on commit f6cd121

Please sign in to comment.