File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ public function cleanFilters(): void
189
189
// (e.g. consider that January 32 is February 1)
190
190
$ dt = DateTime::createFromFormat ("Y-m-d " , $ filterValue );
191
191
192
- return $ dt !== false && ! array_sum ($ dt ::getLastErrors ());
192
+ return $ dt !== false && ( $ dt :: getLastErrors () === false || ! array_sum ($ dt ::getLastErrors () ));
193
193
}
194
194
195
195
if ($ filterDefinitions [$ filterName ]->isDatetime ()) {
@@ -198,7 +198,7 @@ public function cleanFilters(): void
198
198
// (e.g. consider that January 32 is February 1)
199
199
$ dt = DateTime::createFromFormat ("Y-m-d\TH:i " , $ filterValue );
200
200
201
- return $ dt !== false && ! array_sum ($ dt ::getLastErrors ());
201
+ return $ dt !== false && ( $ dt :: getLastErrors () === false || ! array_sum ($ dt ::getLastErrors () ));
202
202
}
203
203
204
204
return false ;
You can’t perform that action at this time.
0 commit comments