mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-30 12:14:36 -05:00
FilterTerm::sql_attr() returned 'weekday(NOW()' without its closing parenthesis, so any filter with a Current Weekday term failed with "Database query failed". FilterTerm::valid() treated the value 0 (Monday) as missing, so a Monday term was dropped and the filter matched every event. ZoneMinder::Filter had no CurrentWeekday case at all and emitted E.CurrentWeekday, a column Events does not have, so zmfilter.pl could not run such a filter either. Emit weekday(NOW()) there as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>