Al hacer resend de un email en el Message History del Case Information Menu, se despliega dos notice con Undefined index.

Se valido que el elemento que genera el "notice" exista, antes de continuar con la ejecucion del mismo.
This commit is contained in:
marcelo.cuiza
2015-02-11 10:20:48 -04:00
parent 59ccd6e2d4
commit d56bf7133f

View File

@@ -229,6 +229,7 @@ class spoolRun
$this->fileData['envelope_to'] = array ();
$this->fileData["contentTypeIsHtml"] = $bContentTypeIsHtml;
if (array_key_exists('MESS_ENGINE',$this->config)) {
if ($this->config['MESS_ENGINE'] == 'OPENMAIL') {
if ($this->config['MESS_SERVER'] != '') {
if (($sAux = @gethostbyaddr( $this->config['MESS_SERVER'] ))) {
@@ -241,6 +242,7 @@ class spoolRun
}
}
}
}
/**
* send mail
@@ -416,6 +418,7 @@ class spoolRun
private function handleMail ()
{
if (count( $this->fileData['envelope_to'] ) > 0) {
if (array_key_exists('MESS_ENGINE',$this->config)) {
switch ($this->config['MESS_ENGINE']) {
case 'MAIL':
case 'PHPMAILER':
@@ -577,6 +580,7 @@ class spoolRun
}
}
}
}
/**
* try resend the emails from spool