From 03f529a5721717e1963def83c6df9660ee4fbc6e Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Thu, 21 Apr 2016 13:53:55 -0400 Subject: [PATCH] fix unset index warning --- controller/action/ContentActions.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, [])) ]]; } //