It's possible for a block to not be enabled, for example if the user has opted not to show it in their profile. So let's not do all the path-finding logic unless we have to.

CommentFileSizeAuthor
block_enabled.patch833 byteswebchick
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mfer’s picture

simple and it works. Nice savings on some sql queries.

mfer’s picture

Status: Needs review » Reviewed & tested by the community
Dries’s picture

Status: Reviewed & tested by the community » Needs work

Actually, I think we can make this a global if. That is, we can simplify/streamline the code further.

catch’s picture

still applies with some fuzz and offset.

dpearcefl’s picture

Status: Needs work » Postponed (maintainer needs more info)

Is this still a problem in current D6?

dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Needs work

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.