--- sites/all/modules/ad/adserve copy.inc	2008-01-08 06:59:03.000000000 -0800
+++ sites/all/modules/ad/adserve.inc	2008-03-06 12:14:39.000000000 -0800
@@ -436,14 +436,10 @@ function adserve_select_ad($ads, $quanti
  */
 function adserve_include_drupal() {
   // Optionally set DRUPAL_ROOT at the top of this file.
-  if (DRUPAL_ROOT && is_dir(DRUPAL_ROOT) &&
+  if (defined("DRUPAL_ROOT") && is_dir(DRUPAL_ROOT) &&
       file_exists(DRUPAL_ROOT .'/includes/bootstrap.inc')) {
     chdir(DRUPAL_ROOT);
   }
-  else if (DRUPAL_ROOT && DRUPAL_ROOT != 'DRUPAL_ROOT' &&
-           adserve_variable('debug')) {
-    echo 'Invalid DRUPAL_ROOT ('. DRUPAL_ROOT .') defined in adserve.inc.';
-  }
   else {
     // Move process to top level Drupal directory so we can perform a bootstrap.
     for ($i = 1; $i <= 20; $i++) {
