Update destinations.php
This commit is contained in:
@@ -307,17 +307,19 @@ class destinations {
|
|||||||
}
|
}
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($apps as $x => &$app) {
|
foreach ($apps as $x => &$app) {
|
||||||
if (isset($app['destinations'])) foreach ($app['destinations'] as &$row) {
|
if (isset($app['destinations'])) {
|
||||||
$this->destinations[] = $row;
|
foreach ($app['destinations'] as &$row) {
|
||||||
|
$this->destinations[] = $row;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//put the array in order
|
//put the array in order
|
||||||
foreach ($this->destinations as $row) {
|
foreach ($this->destinations as $row) {
|
||||||
$option_groups[] = $row['label'];
|
$option_groups[] = $row['label'];
|
||||||
}
|
}
|
||||||
array_multisort($option_groups, SORT_ASC, $this->destinations);
|
array_multisort($option_groups, SORT_ASC, $this->destinations);
|
||||||
|
|
||||||
//add the sql and data to the array
|
//add the sql and data to the array
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($this->destinations as $row) {
|
foreach ($this->destinations as $row) {
|
||||||
@@ -433,7 +435,6 @@ class destinations {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$select_value = str_replace("\${".$key."}", $data[$key], $select_value);
|
$select_value = str_replace("\${".$key."}", $data[$key], $select_value);
|
||||||
|
|||||||
Reference in New Issue
Block a user