Use the same array consistently.

This commit is contained in:
markjcrane
2015-08-06 00:25:38 -05:00
parent 1393201847
commit e413e61a3b

View File

@@ -110,7 +110,7 @@ class destinations {
public function select($destination_type, $destination_name, $destination_value) {
//get the array
$destinations = $this->get_array();
$switch['destinations'] = $this->get_array();
//remove special characters from the name
$destination_id = str_replace("]", "", $destination_name);
@@ -165,7 +165,7 @@ class destinations {
//print_r($switch);
$response .= " <select name='".$destination_name."' id='".$destination_id."' class='formfld' style='".$select_style."' onchange=\"".$onchange."\">\n";
foreach ($switch[destinations] as $row) {
foreach ($switch['destinations'] as $row) {
$name = $row['name'];
$label = $row['label'];