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
This commit is contained in:
2015-04-30 09:49:47 +00:00
parent 4ba5ba23f4
commit 69442fa87d

View File

@@ -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];