This is a logic bug in the domain_user() function:

        if (empty($account->domain_user) || array_sum($account->domain_user) == 0) {
          $output = t('This user is not assiged to a domain.');
        }

The array_sum() logic can return a false negative.

CommentFileSizeAuthor
#2 domain_user_func.patch549 bytesagentrickard

Comments

agentrickard’s picture

Patch is to use array_filter() instead of array_sum().

agentrickard’s picture

Status: Active » Needs review
StatusFileSize
new549 bytes

Here's the real patch. May need to move into the 'load' $op.

agentrickard’s picture

Status: Needs review » Patch (to be ported)

Committed to HEAD.

agentrickard’s picture

Status: Patch (to be ported) » Fixed

Does not apply to 5.x

Anonymous’s picture

Status: Fixed » Closed (fixed)

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