aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
Diffstat (limited to 'inc/poche')
-rwxr-xr-xinc/poche/Poche.class.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 09a9f5ff..bcf2ddeb 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -906,7 +906,7 @@ class Poche
906 */ 906 */
907 public function import() { 907 public function import() {
908 908
909 if ( isset($_FILES['file']) ) { 909 if ( isset($_FILES['file']) && $_FILES['file']['tmp_name'] ) {
910 Tools::logm('Import stated: parsing file'); 910 Tools::logm('Import stated: parsing file');
911 911
912 // assume, that file is in json format 912 // assume, that file is in json format
@@ -976,6 +976,9 @@ class Poche
976 } 976 }
977 Tools::logm('Import of articles finished: '.$i.' articles added (w/o content if not provided).'); 977 Tools::logm('Import of articles finished: '.$i.' articles added (w/o content if not provided).');
978 } 978 }
979 else {
980 $this->messages->add('s', _('Did you forget to select a file?'));
981 }
979 //file parsing finished here 982 //file parsing finished here
980 983
981 //now download article contents if any 984 //now download article contents if any