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; ?>
CommentFileSizeAuthor
zen.patch656 bytesszantog
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pixelite’s picture

This is an issue in Drupal core's page.tpl.php as well: http://drupal.org/node/997408

JohnAlbin’s picture

Title: Tab div always rendered » Tabs div is always rendered
Status: Needs review » Fixed

I 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! :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.