mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-23 14:43:43 +00:00
[nsfw] Rewrite string condition to avoid warning message
- Address https://github.com/friendica/friendica/issues/13157#issuecomment-1567337197
This commit is contained in:
parent
54f4a054c7
commit
9bfb5e879d
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ function nsfw_addon_settings_post(array &$b)
|
||||||
$word_list = explode(',', $words);
|
$word_list = explode(',', $words);
|
||||||
foreach ($word_list as $word) {
|
foreach ($word_list as $word) {
|
||||||
$word = trim($word);
|
$word = trim($word);
|
||||||
if (!$words || $word[0] != '/') {
|
if (!$words || strpos($word, '/') !== 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue