ignore not (yet) existing mailaccounts table, but not checking for emailadmin, as it is not set in setup

This commit is contained in:
Ralf Becker 2012-11-22 14:58:34 +00:00
parent 350acd2157
commit 15df850d28

View File

@ -214,8 +214,9 @@ class accounts_sql
} }
} }
// store group-email in mailaccounts table // store group-email in mailaccounts table
if ($data['account_id'] < 0 && $GLOBALS['egw_info']['apps']['emailadmin']) if ($data['account_id'] < 0 && class_exists('emailadmin_smtp_sql', false))
{ {
try {
if (empty($data['account_email'])) if (empty($data['account_email']))
{ {
$this->db->delete(emailadmin_smtp_sql::TABLE, array( $this->db->delete(emailadmin_smtp_sql::TABLE, array(
@ -233,6 +234,9 @@ class accounts_sql
), __LINE__, __FILE__, emailadmin_smtp_sql::APP); ), __LINE__, __FILE__, emailadmin_smtp_sql::APP);
} }
} }
// ignore not (yet) existing mailaccounts table
catch (egw_exception_db $e) { }
}
return $data['account_id']; return $data['account_id'];
} }