mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed error in pagination to extension Agents/Modules
(cherry picked from commit 46e74f1ddda03818db8bc60de97a6b703f00cdf2)
This commit is contained in:
parent
4e6184f46b
commit
796e7b1f33
@ -138,7 +138,7 @@ function mainAgentsModules() {
|
||||
}
|
||||
$count++;
|
||||
}
|
||||
|
||||
$total_pagination = count($agents);
|
||||
$all_modules = agents_get_modules($agents, false, $filter_module_group, true, false);
|
||||
|
||||
$modules_by_name = array();
|
||||
@ -242,13 +242,12 @@ function mainAgentsModules() {
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
$filter_agents = array('offset' => (int) $offset,
|
||||
'limit' => (int) $config['block_size'], 'disabled' => 0);
|
||||
$filter_agents = array('offset' => (int) $offset, 'disabled' => 0);
|
||||
if ($group_id > 0) {
|
||||
$filter_agents['id_grupo'] = $group_id;
|
||||
}
|
||||
// Prepare pagination
|
||||
ui_pagination ((int)count(agents_get_agents ($filter_agents)));
|
||||
ui_pagination ($total_pagination);
|
||||
|
||||
foreach ($agents as $agent) {
|
||||
// Get stats for this group
|
||||
|
Loading…
x
Reference in New Issue
Block a user