strtoupper без multibyte
This commit is contained in:
parent
18ceea0895
commit
6c59f310cb
|
@ -27,7 +27,7 @@ class SearchController extends Controller
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($term) && mb_strlen($term) > 4) {
|
if (!empty($term) && mb_strlen($term) > 4) {
|
||||||
$term = mb_strtoupper($term);
|
$term = strtoupper($term);
|
||||||
$options = Game::where(DB::raw('UPPER(title)'), 'LIKE', '%'.$term.'%')->get();
|
$options = Game::where(DB::raw('UPPER(title)'), 'LIKE', '%'.$term.'%')->get();
|
||||||
if ($options->count() === 1) {
|
if ($options->count() === 1) {
|
||||||
$page = new Wikipage($options[0]);
|
$page = new Wikipage($options[0]);
|
||||||
|
|
Loading…
Reference in a new issue