Permalink
Browse files

[MDL-15298] Avoid printing a warning if debugging is enabled. Backpor…

…ted from HEAD.
  • Loading branch information...
1 parent 0867c86 commit 7a8039c2e2f7db4061553e8c2eb70cfb958ae74c robertall committed Jun 25, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/data/preset.php
View
@@ -498,7 +498,7 @@ function data_presets_export($course, $cm, $data) {
}
$exportfile = "$CFG->dataroot/$course->id/moddata/data/$data->id/$presetname.zip";
- @unlink($exportfile);
+ file_exists($exportfile) && unlink($exportfile);
$status = zip_files($filelist, $exportfile);
// ToDo: status check
foreach ($filelist as $file) {

0 comments on commit 7a8039c

Please sign in to comment.