[nsfw] Rewrite string condition to avoid warning message #1393

Merged
tobias merged 1 commits from MrPetovan/friendica-addons:bug/warnings into develop 2023-05-30 07:20:36 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ function nsfw_addon_settings_post(array &$b)
$word_list = explode(',', $words);
foreach ($word_list as $word) {
$word = trim($word);
if (!$words || $word[0] != '/') {
if (!$words || strpos($word, '/') !== 0) {
continue;
}