fix(database): refine development mode condition in Database class

- Removed unnecessary function check from the development mode condition to streamline the logic.
This commit is contained in:
Yury Pikhtarev 2025-06-20 14:54:19 +04:00
commit d40c6ba68f
No known key found for this signature in database

View file

@ -767,7 +767,7 @@ class Database
// Define these variables early so they're available throughout the method
$is_admin = defined('IS_ADMIN') && IS_ADMIN;
$is_dev_mode = (defined('APP_ENV') && APP_ENV === 'local') || (defined('DBG_USER') && DBG_USER) || function_exists('dev');
$is_dev_mode = (defined('APP_ENV') && APP_ENV === 'local') || (defined('DBG_USER') && DBG_USER);
// Build a meaningful error message
if (!empty($error['message'])) {