strtoupper без multibyte

This commit is contained in:
Alexander Yakovlev 2021-07-30 20:36:06 +07:00
parent 18ceea0895
commit 6c59f310cb
Signed by: oreolek
GPG key ID: 8D24103F5EE2A6C0

View file

@ -27,7 +27,7 @@ class SearchController extends Controller
}
}
if (!empty($term) && mb_strlen($term) > 4) {
$term = mb_strtoupper($term);
$term = strtoupper($term);
$options = Game::where(DB::raw('UPPER(title)'), 'LIKE', '%'.$term.'%')->get();
if ($options->count() === 1) {
$page = new Wikipage($options[0]);