#12893 fix double graphs message

This commit is contained in:
Jonathan 2024-04-05 11:44:19 +02:00
parent 439dc6d273
commit 939b571a87
1 changed files with 0 additions and 16 deletions

View File

@ -107,22 +107,6 @@ function groups_check_used($idGroup)
$return['tables'][] = __('Discovery task');
}
switch ($config['dbtype']) {
case 'mysql':
case 'postgresql':
$numRows = db_get_num_rows('SELECT * FROM tgraph WHERE id_group = '.$idGroup.';');
break;
case 'oracle':
$numRows = db_get_num_rows('SELECT * FROM tgraph WHERE id_group = '.$idGroup);
break;
}
if ($numRows > 0) {
$return['return'] = true;
$return['tables'][] = __('Graphs');
}
switch ($config['dbtype']) {
case 'mysql':
case 'postgresql':