fixed error not show messages

This commit is contained in:
marcos 2021-02-23 14:35:57 +01:00
parent a5b1128014
commit b13d5dc8d4
2 changed files with 1 additions and 22 deletions

View File

@ -497,11 +497,7 @@ function messages_get_overview(
if ($incl_source_info) {
$source_fields = ', tns.*';
$source_join = 'INNER JOIN tnotification_source tns
ON tns.id=tm.id_source
INNER JOIN tnotification_source_user nsu
ON nsu.id_source=tns.id
AND nsu.enabled = 1
OR tns.enabled = 1';
ON tns.id=tm.id_source';
}
// Using distinct because could be double assignment due group/user.

View File

@ -209,23 +209,6 @@ if (($new_msg) && (!empty($dst_user)) && (!$reply)) {
);
}
// Create message (destination group).
if (($new_msg) && ($dst_group != '') && (!$reply)) {
$return = messages_create_message(
$config['id_user'],
[],
[$dst_group],
$subject,
$message
);
ui_print_result_message(
$return,
__('Message successfully sent'),
__('Error sending message to group %s', groups_get_name($dst_group))
);
}
// Message creation form.
// User info.
$own_info = get_user_info($config['id_user']);