diff options
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-x | inc/poche/Poche.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index a49413f2..098dd7c1 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -750,8 +750,8 @@ class Poche | |||
750 | die(sprintf(_('User with this id (%d) does not exist.'), $user_id)); | 750 | die(sprintf(_('User with this id (%d) does not exist.'), $user_id)); |
751 | } | 751 | } |
752 | 752 | ||
753 | if (!in_array($type, $allowed_types) || $token != $config['token']) { | 753 | if (!in_array($type, $allowed_types) || !isset($config['token']) || $token != $config['token']) { |
754 | die(_('Uh, there is a problem while generating feeds.')); | 754 | die(_('Uh, there is a problem while generating feed. Wrong token used?')); |
755 | } | 755 | } |
756 | 756 | ||
757 | $feed = new FeedWriter(RSS2); | 757 | $feed = new FeedWriter(RSS2); |