Skip to content
Snippets Groups Projects
Commit 88c5fee2 authored by Adrian Lang's avatar Adrian Lang
Browse files

Honor allowdebug setting in lib/exe/indexer

parent 3d2017d9
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,8 @@ if(!$defer){
$ID = cleanID($_REQUEST['id']);
// Catch any possible output (e.g. errors)
if(!isset($_REQUEST['debug'])) ob_start();
$output = isset($_REQUEST['debug']) && $conf['allowdebug'];
if(!$output) ob_start();
// run one of the jobs
$tmp = array(); // No event data
......@@ -42,7 +43,7 @@ if ($evt->advise_before()) {
}
if($defer) sendGIF();
if(!isset($_REQUEST['debug'])) ob_end_clean();
if(!$output) ob_end_clean();
exit;
// --------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment