Skip to content

Commit

Permalink
[nsfw] Rewrite string condition to avoid warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPetovan committed May 29, 2023
1 parent 54f4a05 commit 9bfb5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsfw/nsfw.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9bfb5e8

Please sign in to comment.