minor fix

This commit is contained in:
fbsanchez 2020-11-26 12:57:30 +01:00
parent 146f3b44d9
commit 7fc32d3269
1 changed files with 2 additions and 4 deletions

View File

@ -246,12 +246,10 @@ function planned_downtimes_get_malformed()
$sql = "SELECT *
FROM tplanned_downtime
WHERE type_execution = 'periodically'
AND ((type_periodicity = 'monthly'
AND (type_periodicity = 'monthly'
AND (periodically_day_from > periodically_day_to
OR (periodically_day_from = periodically_day_to
AND periodically_time_from >= periodically_time_to)))
OR (type_periodicity = 'weekly'
AND periodically_time_from >= periodically_time_to))";
AND periodically_time_from >= periodically_time_to)))";
$malformed_downtimes = db_get_all_rows_sql($sql);
if ($malformed_downtimes === false) {