mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-16 10:24:56 +02:00
Merge branch 'ent-11441-15692-aviso-sobre-agent-access-statistics-aparece-cada-dia' into 'develop'
Ent 11441 15692 aviso sobre agent access statistics aparece cada dia See merge request artica/pandorafms!6060
This commit is contained in:
commit
01de48631c
@ -679,9 +679,12 @@ class ConsoleSupervisor
|
|||||||
*/
|
*/
|
||||||
public function checkAccessStatisticsPerformance()
|
public function checkAccessStatisticsPerformance()
|
||||||
{
|
{
|
||||||
|
global $config;
|
||||||
|
|
||||||
$total_agents = db_get_value('count(*)', 'tagente');
|
$total_agents = db_get_value('count(*)', 'tagente');
|
||||||
|
|
||||||
if ($total_agents >= 200) {
|
if ($total_agents >= 200) {
|
||||||
|
if ($config['agentaccess'] !== 0) {
|
||||||
db_process_sql_update('tconfig', ['value' => 0], ['token' => 'agentaccess']);
|
db_process_sql_update('tconfig', ['value' => 0], ['token' => 'agentaccess']);
|
||||||
$this->notify(
|
$this->notify(
|
||||||
[
|
[
|
||||||
@ -693,6 +696,7 @@ class ConsoleSupervisor
|
|||||||
'url' => '__url__/index.php?sec=general&sec2=godmode/setup/setup§ion=perf',
|
'url' => '__url__/index.php?sec=general&sec2=godmode/setup/setup§ion=perf',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->cleanNotifications('NOTIF.ACCESSSTASTICS.PERFORMANCE');
|
$this->cleanNotifications('NOTIF.ACCESSSTASTICS.PERFORMANCE');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user