diff --git a/main/calendar/agenda.inc.php b/main/calendar/agenda.inc.php
index 4bb67b327e..490dc15e7b 100644
--- a/main/calendar/agenda.inc.php
+++ b/main/calendar/agenda.inc.php
@@ -1,4 +1,4 @@
-\n";
// the buttons for adding or removing groups/users
echo "\n\t\t
\n";
echo "\t\t",
"\n\t\t
",
"\n\t\t";
echo "\t\t
\n";
echo "\n\t\t
\n";
@@ -639,13 +639,13 @@ function store_new_agenda_item()
(title,content, start_date, end_date)
VALUES
('".$title."','".$content."', '".$start_date."','".$end_date."')";
-
+ echo($sql);
$result = api_sql_query($sql,__FILE__,__LINE__) or die (Database::error());
$last_id=Database::insert_id();
// store in last_tooledit (first the groups, then the users
$to=$_POST['selectedform'];
-
+
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);
@@ -2509,7 +2509,7 @@ function show_add_form($id = '')
?>