]> git.mxchange.org Git - mailer.git/blobdiff - inc/daily/daily_birthday.php
Extension ext-blacklist continued:
[mailer.git] / inc / daily / daily_birthday.php
index da2c57f9ee20eb76ab400c3abc98da2132ca96fa..a4de24302ce2160e2166331c9558590a6d5bf78d 100644 (file)
 if (!defined('__SECURITY')) {
        die();
 } elseif ((!isHtmlOutputMode()) || (!isResetModeEnabled())) {
-       // Do not execute when script is in CSS mode
+       // Do not execute when script is in non-HTML mode
        return;
 } elseif (!isExtensionActive('birthday')) {
        // Extension not active/installed
-       logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-birthday disabled');
+       if (isDebugModeEnabled()) logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-birthday disabled.');
        return;
 }
 
 // Debug line
-//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset started');
+//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset started.');
 
 // Get current day (01 to 31), month (01 to 12) and year (4-digits year)
 $day   = getDay();
@@ -128,7 +128,7 @@ if (!SQL_HASZERONUMS($result_birthday)) {
 } // END - if
 
 // Debug line
-//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset ended');
+//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Daily reset ended.');
 
 // [EOF]
 ?>