summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorLoki3000 <github@labcms.ru>2016-03-24 16:02:08 +0400
committerLoki3000 <github@labcms.ru>2016-03-24 16:02:08 +0400
commit522df41376706b5ba4c6fa96bb1d7b8816397541 (patch)
tree03c6726809523b7f1386eb97bc75c4dacb187cd1 /db
parent4c3d2639c49e87b77a5009dc804b078b44f4e8ec (diff)
Update itemmapper.php
* Fix multibyte search
Diffstat (limited to 'db')
-rw-r--r--db/itemmapper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/itemmapper.php b/db/itemmapper.php
index 27a61db80..b7a594122 100644
--- a/db/itemmapper.php
+++ b/db/itemmapper.php
@@ -68,7 +68,7 @@ class ItemMapper extends NewsMapper {
private function buildLikeParameters($search=[]) {
return array_map(function ($param) {
$param = addcslashes($param, '\\_%');
- return '%' . strtolower($param) . '%';
+ return '%' . mb_strtolower($param) . '%';
}, $search);
}