mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-30 13:01:07 +00:00
[fix] test if user_id doesn't exist in feeds generation
This commit is contained in:
parent
4744cb0e1d
commit
17b2afefad
1 changed files with 4 additions and 0 deletions
|
@ -1109,6 +1109,10 @@ class Poche
|
||||||
$allowed_types = array('home', 'fav', 'archive', 'tag');
|
$allowed_types = array('home', 'fav', 'archive', 'tag');
|
||||||
$config = $this->store->getConfigUser($user_id);
|
$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) ||
|
if (!in_array($type, $allowed_types) ||
|
||||||
$token != $config['token']) {
|
$token != $config['token']) {
|
||||||
die(_('Uh, there is a problem while generating feeds.'));
|
die(_('Uh, there is a problem while generating feeds.'));
|
||||||
|
|
Loading…
Reference in a new issue