case 'reset':
$fspot->resetTagSearch();
+ $fspot->resetNameSearch();
$fspot->resetTags();
$fspot->resetDateSearch();
$fspot->resetPhotoView();
break;
case 'search':
- $fspot->startSearch($_GET['for'], $_GET['from'], $_GET['to']);
-
- if((isset($_GET['from']) && $fspot->isValidDate($_GET['from'])) &&
- (isset($_GET['to']) && $fspot->isValidDate($_GET['to']))) {
- }
- else {
- $fspot->startSearch($_GET['for']);
- }
+ $fspot->startSearch($_GET['for']);
break;
case 'update_sort_order':