bugfix when retrieving region

This commit is contained in:
Matthew Vale 2015-11-03 14:34:29 +00:00
parent 81a5fc0db1
commit f70266d669
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ require_once "resources/header.php";
$destination = new destinations;
//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) {
$available_presets[] = json_decode($json, true);
}