diff --git a/app/views/main-menu.php b/app/views/main-menu.php index c6b45276..42d40d66 100644 --- a/app/views/main-menu.php +++ b/app/views/main-menu.php @@ -5,13 +5,13 @@ namespace Aviat\AnimeClient; $whose = $config->get('whose_list') . "'s "; $lastSegment = $urlGenerator->lastSegment(); $extraSegment = $lastSegment === 'list' ? '/list' : ''; -$hasAnime = stripos($GLOBALS['_SERVER']['REQUEST_URI'], 'anime') !== FALSE; -$hasManga = stripos($GLOBALS['_SERVER']['REQUEST_URI'], 'manga') !== FALSE; +$hasAnime = str_contains($GLOBALS['_SERVER']['REQUEST_URI'], 'anime'); +$hasManga = str_contains($GLOBALS['_SERVER']['REQUEST_URI'], 'manga'); ?>