mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
Fix coding style part 2
This commit is contained in:
@@ -13,18 +13,19 @@
|
||||
*/
|
||||
|
||||
if (!is_numeric($_POST['group_id'])) {
|
||||
echo('error with data');
|
||||
exit;
|
||||
} else {
|
||||
if($_POST['confirm'] == 'yes')
|
||||
{
|
||||
$delete = dbDelete('poller_groups', '`id` = ?', array($_POST['group_id']));
|
||||
if ($delete > '0') {
|
||||
echo('Poller group has been removed');
|
||||
exit;
|
||||
} else {
|
||||
echo('An error occurred removing the Poller group');
|
||||
exit;
|
||||
echo 'error with data';
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
if ($_POST['confirm'] == 'yes') {
|
||||
$delete = dbDelete('poller_groups', '`id` = ?', array($_POST['group_id']));
|
||||
if ($delete > '0') {
|
||||
echo 'Poller group has been removed';
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
echo 'An error occurred removing the Poller group';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user