瀏覽代碼

Update destinations.php

FusionPBX 6 年之前
父節點
當前提交
fe4e8f22a3
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      resources/classes/destinations.php

+ 6 - 5
resources/classes/destinations.php

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