X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=inc%2Fpoche%2FPoche.class.php;h=0c8e798c06907705bad7235cab8d91f9c1a5cb42;hb=d47a05a9a5185e835d51341febc8257f5262ce03;hp=134925060fde8c05eaf77962152dd164270ccf0c;hpb=f0d584503ffda109bd4f48c75783916625fb754d;p=github%2Fwallabag%2Fwallabag.git diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 13492506..0c8e798c 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -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.'));