From 5a1a015f11890f6f224b445d591f91aaa1c539f1 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 7 Mar 2016 15:23:41 +0000 Subject: [PATCH] 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 --- config.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config.php b/config.php index 9ed0577..b611108 100644 --- a/config.php +++ b/config.php @@ -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]))