From: Steve Sutton Date: Mon, 27 Feb 2017 19:46:22 +0000 (-0500) Subject: Get rid of notice of no contacts X-Git-Tag: v1.1.0^2~10 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=bfd596f5581be7bf35cfb04b0f4515c2d6f2d899;p=WP-Plugins%2Fglm-member-db-social.git Get rid of notice of no contacts If the contact plugin is not there then get rid of notice. --- diff --git a/setup/adminMenus.php b/setup/adminMenus.php index 6e91272..a54d7d2 100644 --- a/setup/adminMenus.php +++ b/setup/adminMenus.php @@ -72,7 +72,7 @@ // 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,