From 69442fa87d78c65c9f5404c4d8947fdaca2c4c43 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 30 Apr 2015 09:49:47 +0000 Subject: [PATCH] config : an array with "not configured" should not be presented if there is an other entry available git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2118 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- config.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.php b/config.php index 108d0b2..5f438c9 100644 --- a/config.php +++ b/config.php @@ -76,6 +76,8 @@ class config if (! isset ($conf[$param][$key])) $conf[$param][$key] = $val; } + if (count ($conf[$param]) > 1 && isset ($conf[$param]["not configured"])) + unset ($conf[$param]["not configured"]); return $conf[$param]; } return $this->default[$param];