Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In page.tpl.php there are the condition: if ($tabs) .. This is always true, because the $tabs array contains it's callback:
This is a tabs array without real tabs: Array ( [#theme] => menu_local_tasks [#primary] => [#secondary] => )
The condition should be this:
<?php if ($tabs['#primary']): ?>
<div class="tabs"><?php print render($tabs); ?></div>
<?php endif; ?>
Comments
Comment #1
pixeliteThis is an issue in Drupal core's page.tpl.php as well: http://drupal.org/node/997408
Comment #2
JohnAlbinI just wrote a core patch for this too. #997408: $tabs is always set
I'm going to have to update both the page.tpl and zen_menu_local_tasks().
Fixed. http://drupal.org/cvs?commit=502200
Thanks for the help, Szántó and Suzanne! :-)