mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
County lookup only requires state
This alters the county lookup API call to only require that the "state" query parameter be populated
This commit is contained in:
@@ -202,7 +202,7 @@ class Lookup extends CI_Controller {
|
||||
public function get_county() {
|
||||
$json = [];
|
||||
|
||||
if(!empty($this->security->xss_clean($this->input->get("query")))) {
|
||||
if(!empty($this->security->xss_clean($this->input->get("state")))) {
|
||||
$county = $this->security->xss_clean($this->input->get("state"));
|
||||
$cleanedcounty = explode('(', $county);
|
||||
$cleanedcounty = trim($cleanedcounty[0]);
|
||||
|
||||
Reference in New Issue
Block a user