mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
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:
parent
141d6767d7
commit
d40c6ba68f
1 changed files with 1 additions and 1 deletions
|
@ -767,7 +767,7 @@ class Database
|
||||||
|
|
||||||
// Define these variables early so they're available throughout the method
|
// Define these variables early so they're available throughout the method
|
||||||
$is_admin = defined('IS_ADMIN') && IS_ADMIN;
|
$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
|
// Build a meaningful error message
|
||||||
if (!empty($error['message'])) {
|
if (!empty($error['message'])) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue