don't delete channel #1

master
lub 9 years ago
parent 75e09f81be
commit 5897d9b831

@ -26,7 +26,7 @@ foreach($roots as $root) {
continue; continue;
} }
$i++; $i++;
if($delete == true AND $group['total_clients'] == 0) { if($delete == true AND $group['total_clients'] == 0 AND $i != 1) {
$group->delete(); $group->delete();
} }
if($group['total_clients'] == 0) { if($group['total_clients'] == 0) {

Loading…
Cancel
Save