diff options
| author | 2015-01-07 10:48:47 +0100 | |
|---|---|---|
| committer | 2015-01-07 10:48:47 +0100 | |
| commit | bd199c617081f0354576afd09e9427756873afd2 (patch) | |
| tree | 91bdfee48d0ea981da2eca0cb20e1f0cf0b017cd /lib/Minz/Configuration.php | |
| parent | ce10f482748c9819d8e372487010f656c3683db8 (diff) | |
If a conf param doesn't exist, log and return null
See https://github.com/FreshRSS/FreshRSS/issues/730
Diffstat (limited to 'lib/Minz/Configuration.php')
| -rw-r--r-- | lib/Minz/Configuration.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Minz/Configuration.php b/lib/Minz/Configuration.php index 039ba9645..06a7b43b0 100644 --- a/lib/Minz/Configuration.php +++ b/lib/Minz/Configuration.php @@ -135,9 +135,8 @@ class Minz_Configuration { } elseif (isset($this->data_default[$key])) { return $this->data_default[$key]; } else { - throw new Minz_ConfigurationParamException( - $key . ' param does not exist' - ); + Minz_Log::warning($key . ' does not exist in configuration'); + return null; } } |
