#12893 fix double graphs message
This commit is contained in:
parent
439dc6d273
commit
939b571a87
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue