summarized counts

This commit is contained in:
fbsanchez 2019-05-23 15:38:45 +02:00
parent 0ee42fbafe
commit 08aa824f97
1 changed files with 7 additions and 1 deletions

View File

@ -962,7 +962,13 @@ function update_manager_get_config_values()
'customer_key' 'customer_key'
); );
$data = enterprise_hook('license_get_info', [true]);
if ($data === ENTERPRISE_NOT_HOOK) {
$limit_count = db_get_value_sql('SELECT count(*) FROM tagente'); $limit_count = db_get_value_sql('SELECT count(*) FROM tagente');
} else {
$limit_count = $data['count_enabled'];
}
return [ return [
'license' => $license, 'license' => $license,