diff controllers/extractapp.php @ 73:2daef8e36214 extractapp

minor modification
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 08 Apr 2015 16:17:50 +0200
parents 26d8c4c43d86
children 60b5a94163c3
line wrap: on
line diff
--- a/controllers/extractapp.php	Wed Apr 08 15:45:53 2015 +0200
+++ b/controllers/extractapp.php	Wed Apr 08 16:17:50 2015 +0200
@@ -60,11 +60,13 @@
             default:    // first time visit extraction interface from LGService
                 $viewmodel->messages['info'] .= "Welcome to Extraction Interface. ";
 
-                if ($this->postdata['fileId'] != 0) { // ($this->postdata['branchId'] != 0) {
-                    // --- Existing branch case ---
-                    $viewmodel->GetInfoFromPreviousPage($this->postdata);
-                    // get text by fileId, from LGService
-                    $viewmodel->GetTextFromFileId();
+                if (isset($this->postdata['fileId'])) {
+                    if ($this->postdata['fileId'] != 0) { // ($this->postdata['branchId'] != 0) {
+                        // --- Existing branch case ---
+                        $viewmodel->GetInfoFromPreviousPage($this->postdata);
+                        // get text by fileId, from LGService
+                        $viewmodel->GetTextFromFileId();
+                    }
 
                 } else if ($this->postdata['sectionId'] != 0 && $this->postdata['userId'] != 0) {
                     // --- New branch case ---