mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fixes Bug in combination with @phl0 s County-PT
This commit is contained in:
@@ -1058,9 +1058,11 @@ class Logbook_model extends CI_Model {
|
||||
$srx_string = null;
|
||||
}
|
||||
|
||||
if ($this->input->post('usa_county') && $this->input->post('usa_state')) {
|
||||
if (stristr($this->input->post('usa_county') ?? '', ',')) { // Already comma-seperated Conuty?
|
||||
$uscounty = $this->input->post('usa_county');
|
||||
} elseif ($this->input->post('usa_county') && $this->input->post('usa_state')) { // Both filled (and no comma - because that fits one above)
|
||||
$uscounty = trim($this->input->post('usa_state') . "," . $this->input->post('usa_county'));
|
||||
} else {
|
||||
} else { // nothing from above?
|
||||
$uscounty = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user