Get rid of notice of no contacts
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 27 Feb 2017 19:46:22 +0000 (14:46 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 27 Feb 2017 19:46:56 +0000 (14:46 -0500)
If the contact plugin is not there then get rid of notice.

setup/adminMenus.php

index 6e91272..a54d7d2 100644 (file)
@@ -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,