ent 9722 exp license warning pm

This commit is contained in:
edu.corral 2022-11-03 16:01:30 +01:00
parent 1994db7f5c
commit ced830b52b

View File

@ -565,6 +565,15 @@ if ($create_user) {
$notificationSources = db_get_all_rows_filter('tnotification_source', [], 'id');
foreach ($notificationSources as $notification) {
if ((int) $notification['id'] === 1 || (int) $notification['id'] === 5) {
$notification_user = db_get_value_filter(
'id_source',
'tnotification_source_user',
[
'id_source' => $notification['id'],
'id_user' => $id,
]
);
if ($notification_user === false) {
@db_process_sql_insert(
'tnotification_source_user',
[
@ -577,6 +586,7 @@ if ($create_user) {
}
}
}
}
ui_print_result_message(
$result_profile,
@ -888,6 +898,15 @@ if ($add_profile && empty($json_profile)) {
$notificationSources = db_get_all_rows_filter('tnotification_source', [], 'id');
foreach ($notificationSources as $notification) {
if ((int) $notification['id'] === 1 || (int) $notification['id'] === 5) {
$notification_user = db_get_value_filter(
'id_source',
'tnotification_source_user',
[
'id_source' => $notification['id'],
'id_user' => $id,
]
);
if ($notification_user === false) {
@db_process_sql_insert(
'tnotification_source_user',
[
@ -900,6 +919,7 @@ if ($add_profile && empty($json_profile)) {
}
}
}
}
ui_print_result_message(
$return,