mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +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, "'"), '[]*/\?:', ' ');
|
$name = strtr(trim($name, "'"), '[]*/\?:', ' ');
|
||||||
// Shorten the title if necessary.
|
// Shorten the title if necessary.
|
||||||
$name = core_text::substr($name, 0, 31);
|
$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 === '') {
|
if ($name === '') {
|
||||||
// Name is required!
|
// Name is required!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue