mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-33531 backup Avoiding possible Notice
This commit is contained in:
parent
ab519e888b
commit
bde0eac589
@ -511,7 +511,7 @@ abstract class backup_cron_automated_helper {
|
||||
|
||||
|
||||
// MDL-33531: use different filenames depending on backup_shortname option
|
||||
if ( $config->backup_shortname ) {
|
||||
if ( !empty($config->backup_shortname) ) {
|
||||
$courseref = $course->shortname;
|
||||
$courseref = str_replace(' ', '_', $courseref);
|
||||
$courseref = textlib::strtolower(trim(clean_filename($courseref), '_'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user