bugfix when retrieving region
This commit is contained in:
parent
81a5fc0db1
commit
f70266d669
|
|
@ -44,7 +44,7 @@ require_once "resources/header.php";
|
||||||
$destination = new destinations;
|
$destination = new destinations;
|
||||||
|
|
||||||
//load available presets
|
//load available presets
|
||||||
$preset_region = "preset_".$_SESSION['time_conditions']['region'];
|
$preset_region = "preset_".$_SESSION['time_conditions']['region']['text'];
|
||||||
foreach ($_SESSION['time_conditions'][$preset_region] as $json) {
|
foreach ($_SESSION['time_conditions'][$preset_region] as $json) {
|
||||||
$available_presets[] = json_decode($json, true);
|
$available_presets[] = json_decode($json, true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue