From ca34aa1edeb011baed4e2a6fabe56d90c0ba314d Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 5 Dec 2006 04:43:13 +0000 Subject: * Prevent Album art set on demo because people put porn in there :( * Fix Push functionality for the Democratic view stuff * Add footer div definition per Apex's request * Fix Config display with multi-value elements * Added plugin checking to update.php wq --- lib/debug.lib.php | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) (limited to 'lib/debug.lib.php') diff --git a/lib/debug.lib.php b/lib/debug.lib.php index 04e77887..cccfd8e6 100644 --- a/lib/debug.lib.php +++ b/lib/debug.lib.php @@ -224,22 +224,6 @@ function check_config_values($conf) { } // check_config_values -/*! - @function show_compare_config - @discussion shows the difference between ampache.cfg - and ampache.cfg.dst -*/ -function show_compare_config($prefix) { - - // Live Config File - $live_config = $prefix . "/config/ampache.cfg.php"; - - // Generic Config File - $generic_config = $prefix . "/config/ampache.cfg.dist"; - -} // show_compare_config - - /*! @function debug_read_config @discussion this is the same as the read config function @@ -328,8 +312,16 @@ function debug_compare_configs($config,$dist_config) { foreach ($dist_results as $key=>$value) { if (!isset($results[$key])) { - $missing[$key] = $value; - } + /* If it's an array we need to split it out */ + if (is_array($value)) { + foreach ($value as $element) { + $missing[$key][] = $element; + } + } + else { + $missing[$key] = $value; + } // end else not array + } // if it's not set } // end foreach conf -- cgit