diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-10-25 11:36:28 +0200 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-10-25 11:40:42 +0200 |
commit | 88c5fee2871e49eecca1ebfa90a19b1faa1d7350 (patch) | |
tree | 266ad5269ff67ee8a04e6b78ab4042edfc2401a3 /lib/exe | |
parent | 3d2017d9ca9f1e056a33fea3dd482747e901409f (diff) | |
download | rpg-88c5fee2871e49eecca1ebfa90a19b1faa1d7350.tar.gz rpg-88c5fee2871e49eecca1ebfa90a19b1faa1d7350.tar.bz2 |
Honor allowdebug setting in lib/exe/indexer
Diffstat (limited to 'lib/exe')
-rw-r--r-- | lib/exe/indexer.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php index f9cc3158a..3a9673ed6 100644 --- a/lib/exe/indexer.php +++ b/lib/exe/indexer.php @@ -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; // -------------------------------------------------------------------- |