mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
ent 9722 exp license warning pm
This commit is contained in:
parent
1994db7f5c
commit
ced830b52b
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user