Browse Source

Minor - flint fixes

jmontoyaa 6 years ago
parent
commit
6deecc23cd
2 changed files with 8 additions and 10 deletions
  1. 1 2
      main/extra/userInfo.php
  2. 7 8
      main/inc/lib/message.lib.php

+ 1 - 2
main/extra/userInfo.php

@@ -289,8 +289,7 @@ if ($displayMode == "viewDefEdit") {
             "<td align=\"left\"><b>", htmlize(api_get_person_name($mainUserInfo['firstName'], $mainUserInfo['lastName'])), "</b></td>\n",
          "<td align=\"left\"><b>", $mainUserInfo['official_code'], "</td>";
         //récupérer horaire de l'élève
-        $course_id = $_course['real_id'];
-        ?>
+        $course_id = $_course['real_id']; ?>
         <SELECT NAME='hor_name'>
             <OPTION VALUE='<?php echo $mainUserInfo['official_code']; ?>'><?php echo get_lang('select_calendar_student'); ?></OPTION>
             <?php

+ 7 - 8
main/inc/lib/message.lib.php

@@ -272,12 +272,12 @@ class MessageManager
      * @param int    $receiver_user_id
      * @param string $subject
      * @param string $content
-     * @param array  $attachments     files array($_FILES) (optional)
-     * @param array  $fileCommentList about attachment files (optional)
-     * @param int    $group_id        (optional)
-     * @param int    $parent_id       (optional)
-     * @param int    $editMessageId   id for updating the message (optional)
-     * @param int    $topic_id        (optional) the default value is the current user_id
+     * @param array  $attachments      files array($_FILES) (optional)
+     * @param array  $fileCommentList  about attachment files (optional)
+     * @param int    $group_id         (optional)
+     * @param int    $parent_id        (optional)
+     * @param int    $editMessageId    id for updating the message (optional)
+     * @param int    $topic_id         (optional) the default value is the current user_id
      * @param int    $sender_id
      * @param bool   $directMessage
      * @param int    $forwardId
@@ -401,7 +401,7 @@ class MessageManager
                             'tmp_name' => $attachment['file_source'],
                             'size' => $attachment['size'],
                             'error' => 0,
-                            'comment' => $attachment['comment']
+                            'comment' => $attachment['comment'],
                         ];
 
                         // Inject this array so files can be added when sending and email with the mailer
@@ -1873,7 +1873,6 @@ class MessageManager
             }
         }
 
-
         return $list;
     }