diff --git a/domain.module b/domain.module
index 0eee7ea..5ed31a8 100644
--- a/domain.module
+++ b/domain.module
@@ -1362,7 +1362,7 @@ function domain_get_user_domains($account, $add_roles = TRUE, $reset = FALSE) {
         }
         if (!empty($filter)) {
           // If this role is assigned to "All domains"
-          if ($filter['all']) {
+          if (!empty($filter['all'])) {
             // Add all active domains to the user
             foreach (domain_domains() as $domain_id => $domain) {
               $domains[$uid][$domain_id] = $domain_id;
