mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
* Admin: fix email address for groups could not be stored for accounts in SQL
This commit is contained in:
parent
e0c48a978e
commit
bb0035d687
@ -235,13 +235,12 @@ class Sql
|
||||
}
|
||||
}
|
||||
// store group-email in mailaccounts table
|
||||
if ($data['account_id'] < 0 && class_exists('Api\Mail\Smtp\Sql', isset($data['account_email'])))
|
||||
if ($data['account_id'] < 0 && class_exists('EGroupware\\Api\\Mail\\Smtp\\Sql', isset($data['account_email'])))
|
||||
{
|
||||
try {
|
||||
if (isset($GLOBALS['egw_info']['apps']) && !isset($GLOBALS['egw_info']['apps']['emailadmin']) ||
|
||||
isset($GLOBALS['egw_setup']) && !in_array(Api\Mail\Smtp\Sql::TABLE, $this->db->table_names(true)))
|
||||
if (isset($GLOBALS['egw_setup']) && !in_array(Api\Mail\Smtp\Sql::TABLE, $this->db->table_names(true)))
|
||||
{
|
||||
// cant store email, if emailadmin not (yet) installed
|
||||
// cant store email, if table not yet exists
|
||||
}
|
||||
elseif (empty($data['account_email']))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user