// store in last_tooledit (first the groups, then the users
$to=$_POST['selectedform'];
if (($_SESSION['allow_individual_calendar']=="show" and !is_null($to))or (!empty($_SESSION['toolgroup']))) // !is_null($to): when no user is selected we send it to everyone
if ((!is_null($to))or (!empty($_SESSION['toolgroup']))) // !is_null($to): when no user is selected we send it to everyone
{
$send_to=separate_users_groups($to);
// storing the selected groups
@ -1132,7 +1137,7 @@ function store_edited_agenda_item()
$result = api_sql_query($sql_delete,__FILE__,__LINE__) or die (mysql_error());
// 2.b. storing the new users/groups
if ($_SESSION['allow_individual_calendar']=="show" and !is_null($to)) // !is_null($to): when no user is selected we send it to everyone
if (!is_null($to)) // !is_null($to): when no user is selected we send it to everyone
{
$send_to=separate_users_groups($to);
// storing the selected groups
@ -1789,11 +1794,12 @@ function display_one_agenda_item($agenda_id)
* agenda item. When the id parameter is empty (default behaviour), then we show an empty form, else we are editing and
* we have to retrieve the information that is in the database and use this information in the forms.
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University
* @param integer id, the id of the agenda itme we are editing. By default this is empty which means that we are adding an
* @param integer id, the id of the agenda item we are editing. By default this is empty which means that we are adding an
* agenda item.
*/
function show_add_form($id = '')
{
global $MonthsLong;
// the default values for the forms
@ -1902,7 +1908,7 @@ function show_add_form($id = '')
</tr>
<!-- the select specific users / send to all form -->
<?php
<?php
if (isset ($_SESSION['toolgroup']))
{
echo '<trid="subtitle">';
@ -1912,23 +1918,25 @@ function show_add_form($id = '')
echo '</td>';
echo '</tr>';
}else{
}else{
?>
<trclass="subtitle">
<tdvalign="top"colspan="3">
<?php
// this variable defines if the course administrator can send a message to a specific user / group