Add validation for old configurations to avoid notices

This commit is contained in:
Julio Cesar Laura
2014-04-30 09:59:09 -04:00
committed by Erik Amaru Ortiz
parent 82b3a78a0c
commit b96ec01628
2 changed files with 15 additions and 0 deletions

View File

@@ -194,6 +194,15 @@ class spoolRun
$aConfig['MESS_RAUTH'] = 0;
}
$aConfig['SMTPAuth'] = $aConfig['MESS_RAUTH'];
// Validating for old configurations
if (!isset($aConfig['MESS_FROM_NAME'])) {
$aConfig['MESS_FROM_NAME'] = '';
}
if (!isset($aConfig['MESS_FROM_MAIL'])) {
$aConfig['MESS_FROM_MAIL'] = '';
}
$this->config = $aConfig;
}