don't delete channel #1

master
lub 9 years ago
parent 75e09f81be
commit 5897d9b831

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

Loading…
Cancel
Save