Skip to content

Commit

Permalink
Merge pull request opencart#13744 from ADDCreative/patch-15
Browse files Browse the repository at this point in the history
[3.0.x.x] Add cast to zone_id in setting
  • Loading branch information
danielkerr authored Feb 29, 2024
2 parents c6748cf + 518a3ed commit 75c64a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/admin/controller/setting/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ public function index() {
$data['countries'] = $this->model_localisation_country->getCountries();

if (isset($this->request->post['config_zone_id'])) {
$data['config_zone_id'] = $this->request->post['config_zone_id'];
$data['config_zone_id'] = (int)$this->request->post['config_zone_id'];
} else {
$data['config_zone_id'] = $this->config->get('config_zone_id');
$data['config_zone_id'] = (int)$this->config->get('config_zone_id');
}

if (isset($this->request->post['config_timezone'])) {
Expand Down

0 comments on commit 75c64a3

Please sign in to comment.