- // Is the config entry set?
- if (isExtensionInstalledAndNewer('sql_patches', '0.7.5')) {
- // Get more hourly reset scripts
- setIncludePool('hourly', getArrayFromDirectory('inc/hourly/', 'hourly_'));
-
- // Update database
- if ((!isConfigEntrySet('DEBUG_HOURLY')) || (!isDebugHourlyEnabled())) {
- updateConfiguration('last_hourly', getHour());
- } // END - if
+ // Is ext-sql_patches at least 0.9.8?
+ if (isExtensionInstalledAndNewer('sql_patches', '0.9.8')) {
+ // Has it changed?
+ if ((getLastHourly() != getHour()) || (isDebugHourlyEnabled())) {
+ // Get more hourly reset scripts
+ setIncludePool('hourly', getArrayFromDirectory('inc/hourly/', 'hourly_'));