--- domain.module	2008-09-12 13:46:42.000000000 -0400
+++ domain.module.new	2008-09-12 15:00:14.000000000 -0400
@@ -330,7 +330,8 @@ function domain_user($op, &$edit, &$acco
           '#weight' => 10,
           '#title' => t('Domain status'),
         );
-        if (empty($account->domain_user) || array_sum($account->domain_user) == 0) {
+        $account->domain_user = array_filter($account->domain_user);
+        if (empty($account->domain_user)) {
           $output = t('This user is not assiged to a domain.');
         }
         else {
