config : if the default array "not configured" is not found, do not test the value

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2653 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-03-07 15:23:41 +00:00
parent 83c3b46e87
commit 5a1a015f11

View File

@@ -106,8 +106,7 @@ class config
if (is_array ($val))
{
if (! isset ($this->default[$param]["not configured"]))
throw new \Exception ("Invalid config provided : array provided ".
"without default values", 500);
continue;
foreach ($this->default[$param]["not configured"] as $k=>$v)
{
if (! array_key_exists ($k, $conf[$param][$key]))