4
0
Эх сурвалжийг харах

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

See https://github.com/FreshRSS/FreshRSS/issues/730
Marien Fressinaud 11 жил өмнө
parent
commit
bd199c6170

+ 2 - 3
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;
 		}
 	}