File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,10 @@ public function search($town = false)
102
102
// if we don't get location there will be no results rendered
103
103
if (!$ location ) {
104
104
$ this ->template ->content ->have_results = false ;
105
+ $ this ->template ->content ->filter = true ;
106
+ $ this ->template ->content ->town = $ town ;
105
107
$ this ->template ->content ->category = 0 ;
108
+ $ this ->template ->content ->categories = array ();
106
109
return ;
107
110
}
108
111
Original file line number Diff line number Diff line change 16
16
<?php if (!empty ($ filter )) { ?>
17
17
<form action=<?php echo url::site () . '/mobile/reports/search ' ?> method="get" accept-charset="utf-8">
18
18
<div><label for="town">Your Area</label>
19
- <input type="text" name="town" value="<?php echo isset ( $ _GET [ ' town ' ]) ? $ _GET [ ' town ' ] : '' ; ?> "></div>
19
+ <input type="text" name="town" value="<?php echo $ town ?> "></div>
20
20
21
21
<div><label for="distance">Distance</label>
22
22
<select name="distance" id="distance">
You can’t perform that action at this time.
0 commit comments