diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-10 11:00:57 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-10 11:00:57 +0000 |
commit | 08598b34a8621838ce64f4b8a3f2164072c3be1b (patch) | |
tree | 825a9083a413fa5da3491b6da735c6ad3cdb2c41 /lib/debug.lib.php | |
parent | 2f5c09b55c9f0f4149d2ae3ff41678807dab322a (diff) | |
download | ampache-08598b34a8621838ce64f4b8a3f2164072c3be1b.tar.gz ampache-08598b34a8621838ce64f4b8a3f2164072c3be1b.tar.bz2 ampache-08598b34a8621838ce64f4b8a3f2164072c3be1b.zip |
some rather major bug fixes, corrected a preference setting issue, as well as a preference update issue, fixed infinite plugin installing for fun and profit, also fixed updating the config file not regenerating the version correctly and the user creation allowing users with blank password, which does not work at the login
Diffstat (limited to 'lib/debug.lib.php')
-rw-r--r-- | lib/debug.lib.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/debug.lib.php b/lib/debug.lib.php index d0685b24..60195054 100644 --- a/lib/debug.lib.php +++ b/lib/debug.lib.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2007 Ampache.org + Copyright (c) Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -236,15 +236,14 @@ function generate_config($current) { $value = $matches[2]; /* Put in the current value */ - if (isset($current[$key]) AND $key != 'config_version') { + if ($key == 'config_version') { + $line = $key . ' = ' . $value; + } + elseif (isset($current[$key])) { $line = $key . ' = "' . $current[$key] . '"'; unset($current[$key]); } // if set - - elseif (isset($array_value[$key])) { - $line = ''; - } - + } // if key $final .= $line . "\n"; |