mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed the date filter of the list
This commit is contained in:
parent
8811004a63
commit
5188ad51cd
@ -311,7 +311,10 @@ if(!empty($groups)) {
|
||||
}
|
||||
|
||||
if (!empty($date_to)) {
|
||||
$periodically_monthly_w = "type_periodicity = 'monthly' AND (periodically_day_from <= '".date('d', strtotime($date_from))."' AND periodically_time_to >= '".date('d', strtotime($date_to))."')";
|
||||
$periodically_monthly_w = "type_periodicity = 'monthly'
|
||||
AND ((periodically_day_from <= '".date('d', strtotime($date_from))."' AND periodically_day_to >= '".date('d', strtotime($date_to))."')
|
||||
OR (periodically_day_from > periodically_day_to
|
||||
AND (periodically_day_from <= '".date('d', strtotime($date_from))."' OR periodically_day_to >= '".date('d', strtotime($date_to))."')))";
|
||||
|
||||
$periodically_weekly_days = array();
|
||||
$date_from_aux = strtotime($date_from);
|
||||
|
Loading…
x
Reference in New Issue
Block a user