Skip to content
Browse files

MDL-33531 backup Avoiding possible Notice

  • Loading branch information...
1 parent 203e8d4 commit 4af5c4ebf58c09b958c71a3a84378d446a1715bc @dmonllao dmonllao committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/util/helper/backup_cron_helper.class.php
View
2 backup/util/helper/backup_cron_helper.class.php
@@ -511,7 +511,7 @@ public static function remove_excess_backups($course) {
// 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), '_'));

0 comments on commit 4af5c4e

Please sign in to comment.
Something went wrong with that request. Please try again.