From 5204485094d0f9dd7cbb5156cf402c86fcbb7ceb Mon Sep 17 00:00:00 2001 From: xgizzmo Date: Mon, 24 Jul 2006 22:14:54 +0000 Subject: Fix for bug 397 and 498 thanks pb1dft --- lib/debug.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/debug.php') 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 -- cgit