Skip to content

A free, self-hostable news aggregator…

If a conf param doesn't exist, log and return null

Marien Fressinaudbd199c617081
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;
}
}