When I go to 'affiliated content', I get the following message:

Notice: Undefined index: -1 in domain_content_check() (line 135 of /srv/www/drupal7.red-redemption.com/drupal-7.0/sites/all/modules/domain/domain_content/domain_content.module).

My user is not assigned to the default domain; hence the result of domain_get_user_domains does not contain -1. However, line 135 unconditionally accesses key -1. Using array_key_exists would be better.

Comments

agentrickard’s picture

Status: Active » Needs review
StatusFileSize
new1.35 KB

Thanks.

agentrickard’s picture

StatusFileSize
new1.41 KB

Better patch for my readability, since empty() is a more standard check.

agentrickard’s picture

StatusFileSize
new1.33 KB

Maybe if I left the full function intact.

agentrickard’s picture

Status: Needs review » Fixed

Fixed across 6.x, 7.x.2 and 7.x.3.

Status: Fixed » Closed (fixed)

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