summaryrefslogtreecommitdiffstats
path: root/lib/debug.php
diff options
context:
space:
mode:
authorxgizzmo <xgizzmo@ampache>2006-07-24 22:14:54 +0000
committerxgizzmo <xgizzmo@ampache>2006-07-24 22:14:54 +0000
commit5204485094d0f9dd7cbb5156cf402c86fcbb7ceb (patch)
treed5e1df30f7f32892b466298b2e80fc63625d5a13 /lib/debug.php
parent5ca15d0423b736b37d9f772b54042dee66fe9a85 (diff)
downloadampache-5204485094d0f9dd7cbb5156cf402c86fcbb7ceb.tar.gz
ampache-5204485094d0f9dd7cbb5156cf402c86fcbb7ceb.tar.bz2
ampache-5204485094d0f9dd7cbb5156cf402c86fcbb7ceb.zip
Fix for bug 397 and 498 thanks pb1dft
Diffstat (limited to 'lib/debug.php')
-rw-r--r--lib/debug.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/debug.php b/lib/debug.php
index b6564d8e..637ca178 100644
--- a/lib/debug.php
+++ b/lib/debug.php
@@ -34,6 +34,8 @@
file is readable, overkill I know..
@param level 0 is readable, 1 detailed info
*/
+
+
function read_config_file($file,$level=0) {
$fp = @fopen($file, 'r');
@@ -186,7 +188,7 @@ function check_php_pcre() {
least set the needed variables
*/
function check_config_values($conf) {
-
+ $error = new Error();
if (!$conf['local_host']) {
return false;
}
@@ -211,7 +213,13 @@ function check_config_values($conf) {
if (!isset($conf['sess_cookiesecure'])) {
return false;
}
-
+ if (isset($conf['debug'])) {
+ if (!isset($conf['log_path'])) {
+ $error->add_error('log_path',_("You defined the option \"debug = on\" but didn't define a log path for the log to be stored"));
+ return false;
+ }
+ }
+
return true;
} // check_config_values