Skip to content

Commit

Permalink
Cast requested ID
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Jan 30, 2025
1 parent c5df5fa commit eba4c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/deploygroup.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function getMatchingItemsCount($itemtype)
&& is_numeric($_GET['id'])
) {
$pfTaskjob = new PluginGlpiinventoryTaskjob();
$data = $pfTaskjob->find(['actors' => ['LIKE', '%"PluginGlpiinventoryDeployGroup":"' . $_GET['id'] . '"%']]);
$data = $pfTaskjob->find(['actors' => ['LIKE', '%"PluginGlpiinventoryDeployGroup":"' . (int)$_GET['id'] . '"%']]);
$count = count($data);
}
return $count;
Expand Down Expand Up @@ -184,7 +184,7 @@ public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $
]
],
'WHERE' => [
'actors' => ['LIKE', '%"PluginGlpiinventoryDeployGroup":"' . $_GET['id'] . '"%']
'actors' => ['LIKE', '%"PluginGlpiinventoryDeployGroup":"' . (int)$_GET['id'] . '"%']
],
'ORDER' => 'glpi_plugin_glpiinventory_tasks.name'
]);
Expand Down

0 comments on commit eba4c82

Please sign in to comment.