forked from friendica/friendica-addons
Merge pull request '[nsfw] Rewrite string condition to avoid warning message' (#1393) from MrPetovan/friendica-addons:bug/warnings into develop
Reviewed-on: friendica/friendica-addons#1393
This commit is contained in:
commit
941b8c5a14
|
@ -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