? path_alias.patch
Index: domain.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.module,v
retrieving revision 1.86
diff -u -p -r1.86 domain.module
--- domain.module	6 Nov 2008 16:32:07 -0000	1.86
+++ domain.module	1 Jan 2009 17:36:59 -0000
@@ -1292,7 +1292,7 @@ function domain_grant_all($reset= FALSE)
       $regexp = '/^('. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\<front\\\\>($|\|)/'), array('|', '.*', '\1'. preg_quote(variable_get('site_frontpage', 'node'), '/') .'\2'), preg_quote($pages, '/')) .')$/';
       // Compare with the internal and path alias (if any).
       $page_match = preg_match($regexp, $_GET['q']);
-      if (!$page_match) {
+      if (!$page_match && function_exists('drupal_get_path_alias')) {
         $path = drupal_get_path_alias($_GET['q']);
         if ($path != $_GET['q']) {
           $page_match = preg_match($regexp, $path);
