? 6-validate.patch
? 6-x-conf-ignore.patch
? 721352-isset.patch
? test.patch
Index: domain.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.module,v
retrieving revision 1.134.2.7
diff -u -p -r1.134.2.7 domain.module
--- domain.module	13 Feb 2010 20:46:11 -0000	1.134.2.7
+++ domain.module	23 Feb 2010 16:03:59 -0000
@@ -1926,8 +1926,13 @@ function domain_resolve_host($name = '')
  * The current (host) domain name as a String.
  */
 function domain_request_name() {
-  // We lower case this, since EXAMPLE.com == example.com.
-  return strtolower(rtrim($_SERVER['HTTP_HOST']));
+  if (isset($_SERVER['HTTP_HOST'])) { 
+    // We lower case this, since EXAMPLE.com == example.com.
+    return strtolower(rtrim($_SERVER['HTTP_HOST']));
+  }
+  else {
+    return NULL;
+  }
 }
 
 /**
