From af47c51ce8f5b32f83fddae75d0ab6151f5ab5ea Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 8 Dec 2024 19:10:37 +0700 Subject: [PATCH] Update Dev.php --- src/Dev.php | 4 ++++ 1 file changed, 4 insertions(+) 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 */