fix error handling in do_actions.php

This commit is contained in:
Antoine Beaupr�� 2014-10-28 17:48:45 +00:00
parent 923dd0989c
commit 4c4cd25bce
1 changed files with 1 additions and 5 deletions

View File

@ -85,12 +85,8 @@ function d($mess){
*/
function mail_it(){
global $errorsList,$L_FQDN;
// Forces array
if( !is_array($errorsList)){
$errorsList = array($errorsList);
}
// Builds message from array
$msg = implode("\n", $errorsList);
$msg = var_export($errorsList, TRUE);
// Attempts to send email
// @todo log if fails
mail("alterncpanel@$L_FQDN",'Script do_actions.php issues',"\n Errors reporting mail:\n\n$msg");