diff --git a/inc/functions.php b/inc/functions.php index c7ec1c57..50e0ca38 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -54,7 +54,7 @@ function loadConfig() { } - if (isset($config['cache_config']) && + if (isset($config['cache_config']) && $config['cache_config'] && $config = Cache::get('config_' . $boardsuffix ) ) { $events = Cache::get('events_' . $boardsuffix ); @@ -73,7 +73,7 @@ function loadConfig() { else { $config = array(); - reset_events(); + reset_events(); $arrays = array( 'db', @@ -303,7 +303,7 @@ function loadConfig() { if (is_array($config['anonymous'])) $config['anonymous'] = $config['anonymous'][array_rand($config['anonymous'])]; - + if ($config['debug']) { if (!isset($debug)) { $debug = array( @@ -343,7 +343,7 @@ function basic_error_function_because_the_other_isnt_loaded_yet($message, $prior '
This alternative error page is being displayed because the other couldn\'t be found or hasn\'t loaded yet.