diff --git a/include/ws_functions/pwg.categories.php b/include/ws_functions/pwg.categories.php index 1c048c62e..38357c6b3 100644 --- a/include/ws_functions/pwg.categories.php +++ b/include/ws_functions/pwg.categories.php @@ -318,7 +318,7 @@ SELECT } $row['comment'] = strip_tags( - trigger_change( + (string) trigger_change( 'render_category_description', $row['comment'], 'ws_categories_getList' @@ -1307,4 +1307,4 @@ SELECT DISTINCT return $output; } -?> \ No newline at end of file +?> diff --git a/include/ws_functions/pwg.images.php b/include/ws_functions/pwg.images.php index e79d3d568..634f3bb0a 100644 --- a/include/ws_functions/pwg.images.php +++ b/include/ws_functions/pwg.images.php @@ -1803,7 +1803,7 @@ function ws_images_exist($params, $service) // search among photos the list of photos already added, based on md5sum list $md5sums = preg_split( $split_pattern, - $params['md5sum_list'], + (string) $params['md5sum_list'], -1, PREG_SPLIT_NO_EMPTY );