mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-26 10:15:43 +00:00
Do not use the null coalescing operator to retain pre PHP 7 support.
This commit is contained in:
@@ -503,7 +503,7 @@ if (!class_exists('destinations')) {
|
||||
if ($key == $destination_key) {
|
||||
foreach($value as $k => $row) {
|
||||
$selected = ($row['destination'] == $destination_value) ? "selected='selected'" : '';
|
||||
$uuid = $row[$this->singular($key).'_uuid'] ?? $row['uuid'];
|
||||
$uuid = isset($row[$this->singular($key).'_uuid']) ? $row[$this->singular($key).'_uuid'] : $row['uuid'];
|
||||
$response .= " <option id='{$uuid}' value='".$row['destination']."' $selected>".$row['label']."</option>\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
$select_label = str_replace('email-icon', '✉', $select_label);
|
||||
|
||||
//add the select option
|
||||
$uuid = $row[$singular.'_uuid'] ?? $row['uuid'];
|
||||
$uuid = isset($row[$singular.'_uuid']) ? $row[$singular.'_uuid'] : $row['uuid'];
|
||||
echo " <option id='{$uuid}' value='".$select_value."'>".$select_label."</option>\n";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user