]> git.mxchange.org Git - mailer.git/blobdiff - inc/filters.php
Do not check if a config entry is there in this situation
[mailer.git] / inc / filters.php
index 35b17eef966f73ffca76d2e3d3aa7731d468d2ca..fcafc63c0ea18c7c25b6265986d489f6be06df24 100644 (file)
@@ -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 (!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