mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed an error which causes a weird update counter
This commit is contained in:
parent
b8a6328d6e
commit
c93d30878b
@ -133,9 +133,20 @@ if ($update) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($modules_ as $module_) {
|
foreach ($modules_ as $module_) {
|
||||||
$result = process_manage_edit ($module_, $agents_);
|
$filter = array('id_agente' => $agent_);
|
||||||
$count ++;
|
|
||||||
$success += (int)$result;
|
if (!is_numeric($module_))
|
||||||
|
$filter['nombre'] = $module_;
|
||||||
|
else
|
||||||
|
$filter['id_agente_modulo'] = $module_;
|
||||||
|
|
||||||
|
$exists = (bool) db_get_value_filter('id_agente', 'tagente_modulo', $filter);
|
||||||
|
|
||||||
|
if ($exists) {
|
||||||
|
$result = process_manage_edit ($module_, $agent_);
|
||||||
|
$count++;
|
||||||
|
$success += (int)$result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user