14 Jun
2015
14 Jun
'15
3:08 p.m.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> --- Renamed config_key_exists to config_section_exists web/lib/confparser.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/lib/confparser.inc.php b/web/lib/confparser.inc.php index ae862d3..9fbb077 100644 --- a/web/lib/confparser.inc.php +++ b/web/lib/confparser.inc.php @@ -23,3 +23,10 @@ function config_get_bool($section, $key) { $val = strtolower(config_get($section, $key)); return ($val == 'yes' || $val == 'true' || $val == '1'); } + +function config_section_exists($key) { + global $AUR_CONFIG; + config_load(); + + return array_key_exists($key, $AUR_CONFIG); +} -- 2.4.2