Add some validations when Email configuration is empty
This commit is contained in:
@@ -566,7 +566,10 @@ class spoolRun
|
|||||||
$aConfiguration = $oConfiguration->load( "Emails", "", "", "", "" );
|
$aConfiguration = $oConfiguration->load( "Emails", "", "", "", "" );
|
||||||
|
|
||||||
$aConfiguration = unserialize( $aConfiguration["CFG_VALUE"] );
|
$aConfiguration = unserialize( $aConfiguration["CFG_VALUE"] );
|
||||||
$passwd = $aConfiguration["MESS_PASSWORD"];
|
if (!isset($aConfiguration["MESS_ENABLED"])) {
|
||||||
|
$aConfiguration["MESS_ENABLED"] = 0;
|
||||||
|
}
|
||||||
|
$passwd = isset($aConfiguration["MESS_PASSWORD"]) ? $aConfiguration["MESS_PASSWORD"] : '';
|
||||||
$passwdDec = G::decrypt( $passwd, "EMAILENCRYPT" );
|
$passwdDec = G::decrypt( $passwd, "EMAILENCRYPT" );
|
||||||
$auxPass = explode( "hash:", $passwdDec );
|
$auxPass = explode( "hash:", $passwdDec );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user