From b470b2b36055555094f660fd690fae776d828613 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 19 Sep 2022 16:41:40 +0200 Subject: [PATCH] fix #1732 fixing some php8.1 warnings that made the linked album search unusable. --- include/ws_functions/pwg.categories.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ws_functions/pwg.categories.php b/include/ws_functions/pwg.categories.php index 2763ad20b..527c0036b 100644 --- a/include/ws_functions/pwg.categories.php +++ b/include/ws_functions/pwg.categories.php @@ -479,6 +479,9 @@ function ws_categories_getAdminList($params, &$service) global $conf; + if (!isset($params['additional_output'])) { + $params['additional_output'] = ""; + } $params['additional_output'] = array_map('trim', explode(',', $params['additional_output'])); $query = ' @@ -526,6 +529,7 @@ SELECT SQL_CALC_FOUND_ROWS id, name, comment, uppercats, global_rank, dir, statu ) ); $row['fullname'] = strip_tags($cat_display_name); + isset($row['comment']) ? false : $row['comment'] = ""; $row['comment'] = strip_tags( trigger_change( 'render_category_description',