diff options
Diffstat (limited to 'inc/poche')
-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.')); |