From bb0035d6874585130465ad8dc306d967a88d9fbe Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 3 Aug 2016 18:23:43 +0200 Subject: [PATCH] * Admin: fix email address for groups could not be stored for accounts in SQL --- api/src/Accounts/Sql.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/api/src/Accounts/Sql.php b/api/src/Accounts/Sql.php index 203bf23321..218ae7f31b 100644 --- a/api/src/Accounts/Sql.php +++ b/api/src/Accounts/Sql.php @@ -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'])) {