Browse Source

Fix php warning see BT#13516

jmontoyaa 7 years ago
parent
commit
8264926b56
1 changed files with 4 additions and 2 deletions
  1. 4 2
      main/forum/viewthread_flat.inc.php

+ 4 - 2
main/forum/viewthread_flat.inc.php

@@ -35,7 +35,10 @@ if (isset($current_thread['thread_id'])) {
         LINK_FORUM_THREAD
     );
 
-    $closedPost = null;
+    $buttonReply = '';
+    $buttonQuote = '';
+    $closedPost = '';
+
     if (!empty($rows)) {
         $postCount = count($rows);
         foreach ($rows as $row) {
@@ -309,7 +312,6 @@ if (isset($current_thread['thread_id'])) {
             }
             // The post title
             // The check if there is an attachment
-
             $attachment_list = getAllAttachment($row['post_id']);
             if (!empty($attachment_list) && is_array($attachment_list)) {
                 foreach ($attachment_list as $attachment) {