diff --git a/src/Dev.php b/src/Dev.php index 86892bd06..794deed90 100644 --- a/src/Dev.php +++ b/src/Dev.php @@ -101,6 +101,10 @@ class Dev { global $bb_cfg; + if (!$bb_cfg['whoops']['enabled']) { + return; + } + /** * Show errors on page */