diff --git a/CHANGELOG.md b/CHANGELOG.md index c4e0de6..21154c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - **Composer:** Update mirror address ### Feat +- **Category:** Add Categories Support when upload torrent - **Category:** Add Categories Manage Pane - **Tracker:** Add `retry in` field when failed - **UserInfo:** Add Cache Lock of user access_{time,ip} update diff --git a/framework/Base/Env.php b/framework/Base/Env.php index 3725202..780891f 100644 --- a/framework/Base/Env.php +++ b/framework/Base/Env.php @@ -18,6 +18,9 @@ public static function load($envFile) throw new \Rid\Exceptions\EnvException('Environment file does not exist.'); } $env = parse_ini_file($envFile); + if (!$env) { + throw new \Rid\Exceptions\EnvException('Fail to parse Environment file.'); + } self::$_env = array_merge($env, $_SERVER, $_ENV); }