format fixed, substr changed to mb_substr, database-related settings added

This commit is contained in:
Digimon
2014-01-17 19:35:43 +02:00
parent 48eb4c2685
commit 6ea98bf39a

View File

@@ -182,7 +182,7 @@ class MessageController extends Controller
if (!$removeUnused) {
foreach ($obsoleted as $pk => $m) {
if (substr($m, 0, 2) === '@@' && substr($m, -2) === '@@') {
if (mb_substr($m, 0, 2) === '@@' && mb_substr($m, -2) === '@@') {
unset($obsoleted[$pk]);
}
}