]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
[fix] test if user_id doesn't exist in feeds generation
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Mon, 10 Mar 2014 07:10:03 +0000 (08:10 +0100)
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Mon, 10 Mar 2014 07:10:03 +0000 (08:10 +0100)
inc/poche/Poche.class.php

index 134925060fde8c05eaf77962152dd164270ccf0c..0c8e798c06907705bad7235cab8d91f9c1a5cb42 100755 (executable)
@@ -1109,6 +1109,10 @@ class Poche
         $allowed_types = array('home', 'fav', 'archive', 'tag');
         $config = $this->store->getConfigUser($user_id);
 
+        if ($config == null) {
+            die(_('User with this id (' . $user_id . ') does not exist.'));
+        }
+
         if (!in_array($type, $allowed_types) ||
             $token != $config['token']) {
             die(_('Uh, there is a problem while generating feeds.'));