Update the indentation
This commit is contained in:
parent
301fb2b974
commit
6600bbdfc6
|
|
@ -550,21 +550,28 @@ function shutdown() {
|
||||||
if (class_exists('settings') && $settings instanceof settings) {
|
if (class_exists('settings') && $settings instanceof settings) {
|
||||||
//temporary directory in default settings or use the system temp directory
|
//temporary directory in default settings or use the system temp directory
|
||||||
$temp_dir = $settings->get('server', 'temp', sys_get_temp_dir());
|
$temp_dir = $settings->get('server', 'temp', sys_get_temp_dir());
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
//settings is not available
|
//settings is not available
|
||||||
$temp_dir = sys_get_temp_dir();
|
$temp_dir = sys_get_temp_dir();
|
||||||
}
|
}
|
||||||
|
|
||||||
//open the file
|
//open the file
|
||||||
$fp = fopen("$temp_dir/fax_to_email.log", "w");
|
$fp = fopen("$temp_dir/fax_to_email.log", "w");
|
||||||
|
|
||||||
//get the output from the buffer
|
//get the output from the buffer
|
||||||
$content = ob_get_contents();
|
$content = ob_get_contents();
|
||||||
|
|
||||||
//clean the buffer
|
//clean the buffer
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
//write the contents of the buffer
|
//write the contents of the buffer
|
||||||
fwrite($fp, $content);
|
fwrite($fp, $content);
|
||||||
|
|
||||||
//close the file pointer
|
//close the file pointer
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
if ($debug_level > 2) {
|
if ($debug_level > 2) {
|
||||||
var_dump($_REQUEST);
|
var_dump($_REQUEST);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue