Permalink
Browse files

MDL-33682 backup: keep old behavior, aka, use section number on empty…

… section name.
  • Loading branch information...
1 parent 0f63503 commit cd9f44d8df1ebd185aaff3a01b0912e985c1001e @stronk7 stronk7 committed Jun 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/util/factories/backup_factory.class.php
@@ -139,7 +139,7 @@ public static function get_backup_section_task($format, $sectionid) {
throw new backup_task_exception('section_task_section_not_found', $sectionid);
}
- return new backup_section_task((string)$section->name !== '' ? $section->section : $section->name, $sectionid);
+ return new backup_section_task((string)$section->name === '' ? $section->section : $section->name, $sectionid);
}
/**

0 comments on commit cd9f44d

Please sign in to comment.