Fixed some deprecations (#777)

This commit is contained in:
Roman Kelesidis 2023-06-05 20:09:54 +07:00 committed by GitHub
commit 9a5d9a71d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -276,7 +276,7 @@ function clean_filename($fname)
*/
function str_compact($str)
{
return preg_replace('#\s+#u', ' ', trim($str));
return preg_replace('#\s+#u', ' ', trim($str ?? ''));
}
/**