@ -3160,7 +3159,7 @@ function WSCreateSession($params) {
$results[] = 0;
continue;
}
if (empty($name)) {
$results[] = 0;
continue;
@ -3187,9 +3186,9 @@ function WSCreateSession($params) {
'access_end_date' => $access_end_date,
);
$id_session = SessionManager::add($params);
//Database::query("INSERT INTO $tbl_session(name,date_start,date_end,id_coach,session_admin_id, VALUES('".addslashes($name)."','$date_start','$date_end','$id_coach',".intval($_user['user_id']).",".$nb_days_acess_before.", ".$nb_days_acess_after.")");