From aec88c380cd8383aa5349e57ea1db16cd8a468d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 11 Sep 2011 11:15:50 +0000 Subject: [PATCH] Logic fixed and comments improved --- inc/filters.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/filters.php b/inc/filters.php index 35b17eef96..6d9b97eb90 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -603,8 +603,8 @@ function FILTER_RUN_RESET_INCLUDES () { // Get more daily reset scripts setIncludePool('reset', getArrayFromDirectory('inc/daily/', 'daily_')); - // Update database - if ((!isConfigEntrySet('DEBUG_RESET')) || (!isDebugResetEnabled())) { + // Update configuration if this reset is not being debugged + if ((!isConfigEntrySet('DEBUG_RESET')) && (!isDebugResetEnabled())) { updateConfiguration('last_update', 'UNIX_TIMESTAMP()'); } // END - if @@ -615,7 +615,7 @@ function FILTER_RUN_RESET_INCLUDES () { // Include weekly reset scripts mergeIncludePool('reset', getArrayFromDirectory('inc/weekly/', 'weekly_')); - // Update config if not in debug mode + // Update configuration if this reset is not being debugged if (!isWeeklyResetDebugEnabled()) { updateConfiguration('last_week', getWeek()); } // END - if @@ -629,7 +629,7 @@ function FILTER_RUN_RESET_INCLUDES () { // Include monthly reset scripts mergeIncludePool('reset', getArrayFromDirectory('inc/monthly/', 'monthly_')); - // Update config + // Update configuration if this reset is not being debugged if (!isMonthlyResetDebugEnabled()) { updateConfiguration('last_month', $currMonth); } // END - if -- 2.39.5