From 574fcc20fff9d57fded57f587008d55497df91a3 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 31 Oct 2014 15:56:02 +0100 Subject: [PATCH] Minor - fixing PHP warnings. --- main/messages/new_message.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/messages/new_message.php b/main/messages/new_message.php index 1de5fd1202..22f8ce2d15 100755 --- a/main/messages/new_message.php +++ b/main/messages/new_message.php @@ -13,7 +13,7 @@ * - send to specific user (when pressing send message in the who is online list) */ // name of the language file that needs to be included -$language_file= array('messages', 'userInfo', 'admin'); +$language_file = array('messages', 'userInfo', 'admin'); $cidReset = true; require_once '../inc/global.inc.php'; require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php'; @@ -242,8 +242,8 @@ function manage_form($default, $select_from_user_list = null, $sent_to = null) { $file_comments = $_POST['legend']; $title = $default['title']; $content = $default['content']; - $group_id = $default['group_id']; - $parent_id = $default['parent_id']; + $group_id = isset($default['group_id']) ? $default['group_id'] : null; + $parent_id = isset($default['parent_id']) ? $default['parent_id'] : null; if (is_array($user_list) && count($user_list)> 0) { //all is well, send the message foreach ($user_list as $user) {