<?php require_once('includes/requirecompere.inc.php'); $CMD_TMPL_NAME='coursegroup.compose'; $op=TGET('op'); $dataset['ADDNEW']=array(0); if ($op=='revise' && $_SESSION['reserv.inputcache.domain']=='coursegroup.addnew') { $dataset+=$_SESSION['reserv.inputcache.errorareas']; $dataset+=$_SESSION['reserv.inputcache.data']; } $DBConn->connect(true); $mb_id=current_mb_id(); $cg_count=db_count_course_group($DBConn,$mb_id); $dataset['ERROR-COUNT-LIMIT']=$cg_count>=get_compere_limit($DBConn,$mb_id,'coursegroup.count')?array(0):array(); ?>