Skip to content
Snippets Groups Projects
Commit 38507482 authored by xurizaemon's avatar xurizaemon
Browse files

Suppress E_NOTICE errors because we can end up with corrupted JSON from Drupal init.

parent 4459cd26
Branches
Tags
No related merge requests found
......@@ -750,7 +750,8 @@ AND u.status = 1
}
}
require_once 'includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
// @ to suppress notices eg 'DRUPALFOO already defined'.
@drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
// explicitly setting error reporting, since we cannot handle drupal related notices
error_reporting(1);
......
......@@ -672,7 +672,8 @@ SELECT name, mail
}
}
require_once 'includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
// @ to suppress notices eg 'DRUPALFOO already defined'.
@drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
// explicitly setting error reporting, since we cannot handle drupal related notices
error_reporting(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment