Index: domain_content.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain_content/domain_content.admin.inc,v
retrieving revision 1.15
diff -u -r1.15 domain_content.admin.inc
--- domain_content.admin.inc	24 Oct 2009 16:18:52 -0000	1.15
+++ domain_content.admin.inc	29 Jan 2010 18:55:27 -0000
@@ -222,7 +222,7 @@
     if (!empty($node->domains)) {
       foreach ($node->domains as $domain) {
         // Can the user edit this node.  We use += here since this is an array loop.
-        $check[$node->nid] += domain_content_check($domain, $all);
+        $check[$node->nid] += domain_content_check($domain['domain_id'], $all);
         // The root domain is stored as -1, but cast as zero in the global variable.
         $key = ($domain == -1) ? 0 : $domain;
         // Convert the domain ids to data so we can print them.
Index: domain_content.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain_content/domain_content.module,v
retrieving revision 1.30
diff -u -r1.30 domain_content.module
--- domain_content.module	31 Oct 2009 19:29:50 -0000	1.30
+++ domain_content.module	29 Jan 2010 18:53:02 -0000
@@ -47,7 +47,7 @@
         'page callback' => 'domain_content_view',
         'page arguments' => array($domain['domain_id'], FALSE),
         'access callback' => 'domain_content_check',
-        'access arguments' => array($domain),
+        'access arguments' => array($domain['domain_id']),
         'file' => 'domain_content.admin.inc',
         'description' => 'View content assigned to '. filter_xss_admin($domain['subdomain']),
         'weight' => $domain['domain_id']
@@ -117,11 +117,11 @@
  * Access checking routine for menu and node editing checks.
  *
  * @param $domain
- *  An array representing the currently active domain record.
+ *  An id representing the currently active domain record.
  * @param $all
  *  A boolean flag indicating whether this user can access all domains.
  */
-function domain_content_check($domain, $all = FALSE) {
+function domain_content_check($domain_id, $all = FALSE) {
   global $user;
   // If the user can administer nodes, just return TRUE.
   if ($all || user_access('administer nodes')) {
@@ -136,11 +136,11 @@
   $check = FALSE;
   $editor = FALSE;
   // Can this user see the default site?
-  if ($rule && $domain['domain_id'] == 0 && $domains['-1'] == -1) {
+  if ($rule && $domain_id == 0 && $domains['-1'] == -1) {
     $editor = TRUE;
   }
   // Can this user see the active site?
-  else if ($rule && $domain['domain_id'] > 0 && $domain['domain_id'] == $domains[$domain['domain_id']]) {
+  else if ($rule && $domain_id > 0 && $domain_id == $domains[$domain_id]) {
     $editor = TRUE;
   }
   if ($editor) {

