Change parameters to allow nullable types in th_order_by

This commit is contained in:
FusionPBX
2025-11-10 13:26:02 -07:00
committed by GitHub
parent 9abc8c751f
commit f80a7749c6

View File

@@ -638,7 +638,7 @@ if (!function_exists('th_order_by')) {
* *
* @return string The generated HTML for the table header cell with ordering functionality. * @return string The generated HTML for the table header cell with ordering functionality.
*/ */
function th_order_by(string $field_name, string $column_title, string $order_by, string $order, string $app_uuid = '', string $css = '', string $http_get_params = '', string $description = ''): string { function th_order_by(string $field_name, string $column_title, string $order_by, string $order, ?string $app_uuid = '', ?string $css = '', ?string $http_get_params = '', ?string $description = ''): string {
global $text; global $text;
if (is_uuid($app_uuid) > 0) { if (is_uuid($app_uuid) > 0) {
$app_uuid = "&app_uuid=" . urlencode($app_uuid); $app_uuid = "&app_uuid=" . urlencode($app_uuid);