mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add an empty select option and finish moving to $this->destinations array.
This commit is contained in:
@@ -77,14 +77,11 @@ class destinations {
|
|||||||
$result = $statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
unset($statement);
|
unset($statement);
|
||||||
|
|
||||||
$switch['destinations'][$x]['result']['sql'] = $sql;
|
$this->destinations[$x]['result']['sql'] = $sql;
|
||||||
$switch['destinations'][$x]['result']['data'] = $result;
|
$this->destinations[$x]['result']['data'] = $result;
|
||||||
}
|
}
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
|
|
||||||
//return the destination array
|
|
||||||
$this->destinations = $switch['destinations'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -158,6 +155,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";
|
||||||
|
$response .= " <option value=''></option>\n";
|
||||||
foreach ($this->destinations as $row) {
|
foreach ($this->destinations as $row) {
|
||||||
|
|
||||||
$name = $row['name'];
|
$name = $row['name'];
|
||||||
|
|||||||
Reference in New Issue
Block a user