mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Time Conditions - Edit: Mitigate PHP 8.x warnings.
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
$destinations = $destination->get($destination_type);
|
||||
|
||||
//show the select
|
||||
echo " <select name='subaction' id='action' class='formfld' style='".$select_style."'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
echo " <select name='subaction' id='action' class='formfld' ".(!empty($select_style) ? "style='".$select_style."'" : null).">\n";
|
||||
echo " <option value=''></option>\n";
|
||||
foreach($destinations as $key => $rows) {
|
||||
$singular = $destination->singular($key);
|
||||
if ($key == $action && permission_exists("{$singular}_destinations")) {
|
||||
@@ -50,12 +50,12 @@
|
||||
$select_label = str_replace('email-icon', '✉', $select_label);
|
||||
|
||||
//add the select option
|
||||
$uuid = isset($row[$singular.'_uuid']) ? $row[$singular.'_uuid'] : $row['uuid'];
|
||||
echo " <option id='{$uuid}' value='".$select_value."'>".$select_label."</option>\n";
|
||||
$uuid = isset($row[$singular.'_uuid']) ? $row[$singular.'_uuid'] : ($row['uuid'] ?? '');
|
||||
echo " <option id='".$uuid."' value='".$select_value."'>".$select_label."</option>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
echo " </select>\n";
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user