mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Fixed some deprecations (#777)
This commit is contained in:
parent
dadd5dbcdc
commit
9a5d9a71d2
2 changed files with 2 additions and 2 deletions
|
@ -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 ?? ''));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue