diff --git a/htdocs/lib/CMailFile.class.php b/htdocs/lib/CMailFile.class.php index 5612515eacb..cd568819217 100644 --- a/htdocs/lib/CMailFile.class.php +++ b/htdocs/lib/CMailFile.class.php @@ -329,7 +329,9 @@ class CMailFile */ function write_body($msgtext, $filename_list) { - $out=''; + global $conf; + + $out=''; if ($this->atleastonefile) {