|
@@ -647,9 +647,11 @@ if ($display_form) {
|
|
echo ' </div>
|
|
echo ' </div>
|
|
</div>';
|
|
</div>';
|
|
|
|
|
|
- echo '<div class="control-group"><div class="controls">';
|
|
|
|
- echo '<label class="checkbox" ><input name="send_to_users_in_session" type="checkbox" />'.get_lang('SendToUsersInSessions').'</label>';
|
|
|
|
- echo '</div></div>';
|
|
|
|
|
|
+ if (api_get_session_id() == 0) {
|
|
|
|
+ echo '<div class="control-group"><div class="controls">';
|
|
|
|
+ echo '<label class="checkbox" ><input name="send_to_users_in_session" type="checkbox" />'.get_lang('SendToUsersInSessions').'</label>';
|
|
|
|
+ echo '</div></div>';
|
|
|
|
+ }
|
|
|
|
|
|
if (!isset($announcement_to_modify) ) $announcement_to_modify ='';
|
|
if (!isset($announcement_to_modify) ) $announcement_to_modify ='';
|
|
|
|
|
|
@@ -1068,4 +1070,4 @@ if (isset($_GET['action']) && $_GET['action'] == 'view') {
|
|
if (empty($_GET['origin']) or $_GET['origin'] !== 'learnpath') {
|
|
if (empty($_GET['origin']) or $_GET['origin'] !== 'learnpath') {
|
|
//we are not in learnpath tool
|
|
//we are not in learnpath tool
|
|
Display::display_footer();
|
|
Display::display_footer();
|
|
-}
|
|
|
|
|
|
+}
|