mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix another mysql error in isMaintenance() (#11746)
This commit is contained in:
@ -53,8 +53,7 @@ class AlertSchedule extends Model
|
||||
$query->where('start_recurring_dt', '<=', DB::raw("date_format(NOW(), '%Y-%m-%d')"))
|
||||
->where(function ($query) {
|
||||
$query->where('end_recurring_dt', '>=', DB::raw("date_format(NOW(), '%Y-%m-%d')"))
|
||||
->orWhereNull('end_recurring_dt')
|
||||
->orWhere('end_recurring_dt', '0000-00-00');
|
||||
->orWhereNull('end_recurring_dt');
|
||||
});
|
||||
})
|
||||
// Check the time is between the start and end hour/minutes/seconds
|
||||
|
Reference in New Issue
Block a user