diff --git a/src/do_actions.php b/src/do_actions.php index 8ce1c3f0..c574a869 100644 --- a/src/do_actions.php +++ b/src/do_actions.php @@ -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");