Time Conditions - Edit: Mitigate PHP 8.x warnings.

This commit is contained in:
fusionate
2024-05-13 11:22:32 -06:00
parent 69524a5162
commit e81220d997
3 changed files with 10 additions and 10 deletions

View File

@@ -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', '&#9993', $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";
?>
?>