Fixed possible problems of planned downtimes (same as the last fix for Tiquet #2801).

This commit is contained in:
Hirofumi Kosaka 2015-10-16 16:25:01 +09:00
parent 9c3e2168fc
commit f02cde7af7
1 changed files with 1 additions and 0 deletions

View File

@ -1636,6 +1636,7 @@ sub pandora_planned_downtime_monthly_start($$) {
FROM tplanned_downtime
WHERE type_periodicity = ' . $RDBMS_QUOTE_STRING . 'monthly' . $RDBMS_QUOTE_STRING . '
AND executed = 0
AND type_execution <> ' . $RDBMS_QUOTE_STRING . 'once' . $RDBMS_QUOTE_STRING . '
AND ((periodically_day_from = ? AND periodically_time_from <= ?) OR (periodically_day_from < ?))
AND ((periodically_day_to = ? AND periodically_time_to >= ?) OR (periodically_day_to > ?))',
$number_day_month, $time, $number_day_month,