From: Steve Sutton Date: Mon, 27 Feb 2017 19:45:39 +0000 (-0500) Subject: Remove notice X-Git-Tag: v1.1.1^2~5 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=c701efe07a774837dfc54b531e3792e37653b6db;p=WP-Plugins%2Fglm-member-db-leads.git Remove notice Notice from array if there's no contact plugin enabled. --- diff --git a/setup/adminMenus.php b/setup/adminMenus.php index 33e395f..ddba5b6 100644 --- a/setup/adminMenus.php +++ b/setup/adminMenus.php @@ -61,7 +61,7 @@ add_submenu_page( ); // If a contact is logged in (ownEntity isn't false), add Contact Profile menu item -if ( $this->config['loggedInUser']['contactUser'] ) { +if ( isset( $this->config['loggedInUser']['contactUser'] ) && $this->config['loggedInUser']['contactUser'] ) { add_submenu_page( $mainMenuSlug, 'Leads',