I have a wordpress menu in php, and everything works, however i have a multisite wordpress that has been created, if there is not menu in the Wordpress installation, i want it not to display anything, including the search, my code displays when needed, and when not needed it doesn't display anything but it still displays the search box which is in the menu. Here is my code
<?php $menuClass = 'nav';
$menuID = 'primary-navigation';
$primaryNav = '';
if (function_exists('wp_nav_menu')) {
$primaryNav = wp_nav_menu( array(
'theme_location' => 'primary-nav',
'container' => '',
'fallback_cb' => '',
'menu_class' => $menuClass,
'menu_id' => $menuID,
'echo' => false ));
};
?>
<nav>
<div class="navmenu">
<div class="wrap">
<div id="primary-nav">
<?php echo($primaryNav); ?>
<div id="header-search" role="search"><form action="bloginfo("url");" method="get" id="search-form"><label><input type="text" name="s" id="site_search" placeholder="Search this site..." /></label><input type="submit" id="search-submit" value="Search" /></form></div>
</div>
</div>
</div>
</nav>