bugfix when retrieving region
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user