diff --git a/controller/action/ContentActions.class.php b/controller/action/ContentActions.class.php index 1bd56e82..0c07dfd4 100644 --- a/controller/action/ContentActions.class.php +++ b/controller/action/ContentActions.class.php @@ -22,7 +22,7 @@ class ContentActions extends Actions Controller::redirect('/get'); } return ['page/get', [ - 'isSubscribed' => $_GET['email'] || in_array(Mailchimp::LIST_GENERAL_ID, Session::get(Session::KEY_MAILCHIMP_LIST_IDS, [])) + 'isSubscribed' => (isset($_GET['email']) && $_GET['email']) || in_array(Mailchimp::LIST_GENERAL_ID, Session::get(Session::KEY_MAILCHIMP_LIST_IDS, [])) ]]; } //