mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Merge branch 'MDL-52983' of git://github.com/aolley/moodle
This commit is contained in:
commit
ba8491ae3f
1 changed files with 2 additions and 0 deletions
|
@ -163,6 +163,8 @@ class MoodleExcelWorksheet {
|
|||
$name = strtr(trim($name, "'"), '[]*/\?:', ' ');
|
||||
// Shorten the title if necessary.
|
||||
$name = core_text::substr($name, 0, 31);
|
||||
// After the substr, we might now have a single quote on the end.
|
||||
$name = trim($name, "'");
|
||||
|
||||
if ($name === '') {
|
||||
// Name is required!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue