浏览代码

Use the same array consistently.

markjcrane 10 年之前
父节点
当前提交
bab0dfaa8d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      resources/classes/destinations.php

+ 2 - 2
resources/classes/destinations.php

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