Browse Source

Fix PHP warning

jmontoyaa 8 years ago
parent
commit
76478b8827
1 changed files with 4 additions and 4 deletions
  1. 4 4
      main/document/upload.php

+ 4 - 4
main/document/upload.php

@@ -172,16 +172,13 @@ if (empty($document_data['parents'])) {
     foreach ($document_data['parents'] as $document_sub_data) {
         $interbreadcrumb[] = array(
             'url' => $document_sub_data['document_url'],
-            'name' => $document_sub_data['title'],
+            'name' => $document_sub_data['title']
         );
     }
 }
 
 $this_section = SECTION_COURSES;
 
-// Display the header
-Display::display_header($nameTools, 'Doc');
-
 /*    Here we do all the work */
 $unzip = isset($_POST['unzip']) ? $_POST['unzip'] : null;
 $index = isset($_POST['index_document']) ? $_POST['index_document'] : null;
@@ -202,6 +199,9 @@ if (!empty($_FILES)) {
     exit;
 }
 
+// Display the header
+Display::display_header($nameTools, 'Doc');
+
 // Actions
 // Link back to the documents overview
 if ($is_certificate_mode) {