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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | domain_user_func.patch | 549 bytes | agentrickard |
Comments
Comment #1
agentrickardPatch is to use array_filter() instead of array_sum().
Comment #2
agentrickardHere's the real patch. May need to move into the 'load' $op.
Comment #3
agentrickardCommitted to HEAD.
Comment #4
agentrickardDoes not apply to 5.x
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.