fixes #1786 export to piwigo broken with php 8.1

This commit is contained in:
sjsjsjsjsjsjsjsjsj
2022-11-16 19:43:39 +01:00
committed by Pierrick Le Gall
parent b27abf42e7
commit 29b83b1cae
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -318,7 +318,7 @@ SELECT
} }
$row['comment'] = strip_tags( $row['comment'] = strip_tags(
trigger_change( (string) trigger_change(
'render_category_description', 'render_category_description',
$row['comment'], $row['comment'],
'ws_categories_getList' 'ws_categories_getList'
@@ -1307,4 +1307,4 @@ SELECT DISTINCT
return $output; return $output;
} }
?> ?>
+1 -1
View File
@@ -1803,7 +1803,7 @@ function ws_images_exist($params, $service)
// search among photos the list of photos already added, based on md5sum list // search among photos the list of photos already added, based on md5sum list
$md5sums = preg_split( $md5sums = preg_split(
$split_pattern, $split_pattern,
$params['md5sum_list'], (string) $params['md5sum_list'],
-1, -1,
PREG_SPLIT_NO_EMPTY PREG_SPLIT_NO_EMPTY
); );