diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2014-03-10 08:10:03 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2014-03-10 08:10:03 +0100 |
commit | 17b2afefad1947042cc9fbbb841c3a023d00d96d (patch) | |
tree | 7101cb22589aa4a0843cae8351e595ef9f2c047e /inc | |
parent | 4744cb0e1df8ee7c1cd10c9fbd67caec73051024 (diff) | |
download | wallabag-17b2afefad1947042cc9fbbb841c3a023d00d96d.tar.gz wallabag-17b2afefad1947042cc9fbbb841c3a023d00d96d.tar.zst wallabag-17b2afefad1947042cc9fbbb841c3a023d00d96d.zip |
[fix] test if user_id doesn't exist in feeds generation
Diffstat (limited to 'inc')
-rwxr-xr-x | inc/poche/Poche.class.php | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
1109 | $allowed_types = array('home', 'fav', 'archive', 'tag'); | 1109 | $allowed_types = array('home', 'fav', 'archive', 'tag'); |
1110 | $config = $this->store->getConfigUser($user_id); | 1110 | $config = $this->store->getConfigUser($user_id); |
1111 | 1111 | ||
1112 | if ($config == null) { | ||
1113 | die(_('User with this id (' . $user_id . ') does not exist.')); | ||
1114 | } | ||
1115 | |||
1112 | if (!in_array($type, $allowed_types) || | 1116 | if (!in_array($type, $allowed_types) || |
1113 | $token != $config['token']) { | 1117 | $token != $config['token']) { |
1114 | die(_('Uh, there is a problem while generating feeds.')); | 1118 | die(_('Uh, there is a problem while generating feeds.')); |