<?php require_once('includes/requirecompere.inc.php'); require_once('includes/requirepost.inc.php'); $cg_id=TPOST('cg_id'); $mb_id_owner=current_mb_id(); $cs_ids=TPOST('cs_id'); $DBConn->connect(false); $DBConn->begin(true); $group=db_load_course_group($DBConn,$cg_id,$mb_id_owner); if (!$group) { redirect("qx-cmd-coursegroup.manage.html"); } else { if (!$cs_ids) $cs_ids=array(); db_save_course_group_course_ids($DBConn,$cg_id,$cs_ids); redirect("qx-cmd-coursegroup.courses-op-saved--ok-cg_id-".$cg_id.".html"); } $DBConn->commit(); ?>