Skip to content
Snippets Groups Projects
Commit 23cd0178 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Supprime erreurs du a open_basedir

parent 7e9e1503
Branches
Tags
No related merge requests found
......@@ -254,13 +254,15 @@ class CMailFile
*/
function send_to_file()
{
$fp = fopen("/tmp/dolibarr_mail","w");
fputs($fp, $this->headers);
fputs($fp, $this->message);
fclose($fp);
if (@is_writeable("/tmp")) // Avoid fatal error on fopen with open_basedir
{
$fp = fopen("/tmp/dolibarr_mail","w");
fputs($fp, $this->headers);
fputs($fp, $this->message);
fclose($fp);
}
}
/**
\brief Creation des headers smtp
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment