jacobwb / hashover-next

This branch will be HashOver 2.0
GNU Affero General Public License v3.0
420 stars 87 forks source link

PHP 8.1 returns an error about str_replace() use in misc.php #329

Open Julianoe opened 1 year ago

Julianoe commented 1 year ago

Got error 'PHP message: PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /srv/sites/mysite/www/_site/hashover-next/backend/classes/misc.php on line 94

Julianoe commented 1 year ago

Adding a check (with if or ternary operator maybe?) to verify that $string is something would solve it