diff --git a/TODO.md b/TODO.md index c4b19c5..b3e92ba 100644 --- a/TODO.md +++ b/TODO.md @@ -2,6 +2,7 @@ ## Fixes - [x] Replace `mb_strtolower` with `strtolower` in admin/index.php (mbstring not available in php8.4-fpm) +- [x] Replace `mb_strlen`/`mb_substr` with `strlen`/`substr` in student-preview.php (same root cause) ## Features - [x] Student name popover preview in /repertoire (zero per-hover requests) diff --git a/app/storage/posterg.db b/app/storage/posterg.db index 64251a7..ae8059b 100644 Binary files a/app/storage/posterg.db and b/app/storage/posterg.db differ diff --git a/app/storage/test.db b/app/storage/test.db index c302e59..a917362 100644 Binary files a/app/storage/test.db and b/app/storage/test.db differ diff --git a/app/templates/partials/student-preview.php b/app/templates/partials/student-preview.php index 962f669..8327e53 100644 --- a/app/templates/partials/student-preview.php +++ b/app/templates/partials/student-preview.php @@ -10,8 +10,8 @@ foreach ($theses as $t): $synopsis = $t['synopsis'] ?? ''; // Truncate synopsis to ~160 chars - if (mb_strlen($synopsis) > 160) { - $synopsis = mb_substr($synopsis, 0, 157) . '…'; + if (strlen($synopsis) > 160) { + $synopsis = substr($synopsis, 0, 157) . '…'; } $meta = array_filter([ $t['year'] ?? null,