-} elseif ((!isExtensionActive('holiday')) && (isDebugModeEnabled())) {
- logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-holiday disabled.');
+} elseif (!isExtensionActive('holiday')) {
+ if (isDebugModeEnabled()) logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension ext-holiday disabled.');