From e6cfe2b6e9a990a1ecb16c58765eb94bc52a7042 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Fri, 7 Apr 2017 16:58:08 -0400 Subject: [PATCH] Use a more appropriate function for substring filtering --- src/API/Kitsu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/Kitsu.php b/src/API/Kitsu.php index 207135ea..a2cb9d87 100644 --- a/src/API/Kitsu.php +++ b/src/API/Kitsu.php @@ -219,7 +219,7 @@ class Kitsu { foreach($existingTitles as $existing) { - $isSubset = mb_stripos($existing, $title) !== FALSE; + $isSubset = mb_substr_count($existing, $title) > 0; $diff = levenshtein($existing, $title); $onlydifferentCase = (mb_strtolower($existing) === mb_strtolower($title));