<?php require_once('includes/requirecompere.inc.php'); $op=TGET('op'); $mb_id_owner=current_mb_id(); $DBConn->connect(true); $cg_count=db_count_course_group($DBConn,$mb_id_owner); $dataset['GROUP']=db_load_course_groups($DBConn,$mb_id_owner); $dataset['GROUP-NONE']=$dataset['GROUP']?array():array(0); $dataset['ADDNEW-OK']=$op=='addnew-ok'?array(0):array(); $dataset['DELETE-OK']=$op=='delete-ok'?array(0):array(); $dataset['count.addable']=get_compere_limit($DBConn,$mb_id_owner,'coursegroup.count')-$cg_count; $dataset['ADD-COURSEGROUP']=$dataset['count.addable']>0?array(0):array(); ?>