Browse Source

Set the correct value for params arrays in MessageManager::send_message - refs #8089

Angel Fernando Quiroz Campos 9 years ago
parent
commit
9d7be8c35c

+ 2 - 2
main/auth/inscription.php

@@ -664,8 +664,8 @@ if ($form->validate()) {
                         $admin_info['user_id'],
                         $emailsubject,
                         $emailbody,
-                        null,
-                        null,
+                        [],
+                        [],
                         null,
                         null,
                         null,

+ 1 - 1
main/forum/forumfunction.inc.php

@@ -3938,7 +3938,7 @@ function send_mail($user_info = array(), $thread_information = array())
     $email_body .= get_lang('ThreadCanBeFoundHere')." : <br /><a href=\"".$thread_link."\">".$thread_link."</a>\n";
 
     if ($user_info['user_id'] <> $user_id) {
-        MessageManager::send_message($user_info['user_id'], $subject, $email_body, null, null, null, null, null, null, $user_id);
+        MessageManager::send_message($user_info['user_id'], $subject, $email_body, [], [], null, null, null, null, $user_id);
     }
 }
 

+ 4 - 4
main/inc/lib/message.lib.php

@@ -213,8 +213,8 @@ class MessageManager
         $receiver_user_id,
         $subject,
         $content,
-        $file_attachments = array(),
-        $file_comments = array(),
+        array $file_attachments = [],
+        array $file_comments = [],
         $group_id = 0,
         $parent_id = 0,
         $edit_message_id = 0,
@@ -430,8 +430,8 @@ class MessageManager
             $receiver_user_id,
             $subject,
             $message,
-            null,
-            null,
+            [],
+            [],
             null,
             null,
             null,

+ 2 - 2
main/social/group_topics.php

@@ -70,7 +70,7 @@ if (isset($_POST['action'])) {
             $title,
             $content,
             $_FILES,
-            '',
+            [],
             $group_id,
             $parent_id,
             $edit_message_id,
@@ -86,7 +86,7 @@ if (isset($_POST['action'])) {
             $title,
             $content,
             $_FILES,
-            '',
+            [],
             $group_id,
             $parent_id,
             0,

+ 2 - 2
main/survey/survey.lib.php

@@ -3931,8 +3931,8 @@ class SurveyUtil
                 $invitedUser,
                 $invitation_title,
                 $full_invitation_text,
-                null,
-                null,
+                [],
+                [],
                 null,
                 null,
                 null,