diff --git a/main/inc/introductionSection.inc.php b/main/inc/introductionSection.inc.php index 65b3ed60f6..8f710efb9c 100644 --- a/main/inc/introductionSection.inc.php +++ b/main/inc/introductionSection.inc.php @@ -37,12 +37,14 @@ $intro_cmdEdit = empty($_GET['intro_cmdEdit']) ? '' : $_GET['intro_cmdEdit']; $intro_cmdUpdate = isset($_POST['intro_cmdUpdate']); $intro_cmdDel = empty($_GET['intro_cmdDel']) ? '' : $_GET['intro_cmdDel']; $intro_cmdAdd = empty($_GET['intro_cmdAdd']) ? '' : $_GET['intro_cmdAdd']; +$courseId = api_get_course_id(); -if (!empty ($GLOBALS['_cid'])) { +if (!empty($courseId)) { $form = new FormValidator('introduction_text', 'post', api_get_self().'?'.api_get_cidreq()); } else { $form = new FormValidator('introduction_text'); } + $renderer =& $form->defaultRenderer(); $renderer->setElementTemplate('