.env change - Installer - PHP Warnings (#7238)

* .env change - Installer - PHP Warnings
#404

* .env change - Installer - PHP Warnings
This commit is contained in:
Gevorg Mansuryan 2024-09-30 19:14:52 +04:00 committed by GitHub
parent 5899616837
commit 69adb4a633
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ HumHub Changelog
- Enh #7231: Removed deprecated `ShowMorePager` widget
- Fix #7230: Update module with new id
- Enh #7233: Mobile view: enlarge images in gallery preview of entries for the wall stream
- Enh #7238: Fixed PHP warning related to `.env`
1.16.3 (Unreleased)
--------------------------

View File

@ -12,7 +12,7 @@ $dotenv = Dotenv\Dotenv::createImmutable(__DIR__, '.env');
$dotenv->safeLoad();
$dynamicConfig = (is_readable(__DIR__ . '/protected/config/dynamic.php')) ? require(__DIR__ . '/protected/config/dynamic.php') : [];
$debug = !!($_ENV['HUMHUB_DEBUG'] ?? false) || !$dynamicConfig['params']['installed'];
$debug = !!($_ENV['HUMHUB_DEBUG'] ?? false) || !($dynamicConfig['params']['installed'] ?? false);
defined('YII_DEBUG') or define('YII_DEBUG', $debug);
defined('YII_ENV') or define('YII_ENV', $debug ? 'dev' : 'prod');