mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
fix: replace mb_strlen/mb_substr in student-preview.php (mbstring unavailable)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user