Revision #2 was created by Mukke on Feb 10, 2011, 11:04:41 AM.
spelling correction
Content
[...]
```php
$criteria->condition = ':s<=start AND start<=:e';
$criteria->params=array(':s'=>$daystart,':e'=>$dayend);
```
now because if you put nothing in the date search field of the filter it would result in no records found. This is because and empty date would try to find on a mktime(0,0,0,0,0,0) which results in januariey 1st 1970 or something, so unless you have an event that exact date (would seem most unlikely), you will have no results.
tTherefor we would just check if empty before doing the condition, my complete search methond would be something like this( bar the other attributes that can be searched)