Skip to content

Commit

Permalink
[MDL-15298] Avoid printing a warning if debugging is enabled. Backpor…
Browse files Browse the repository at this point in the history
…ted from HEAD.
  • Loading branch information
robertall committed Jun 25, 2008
1 parent 0867c86 commit 7a8039c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/data/preset.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 7a8039c

Please sign in to comment.