From 8ced02dc559c4f10b52df3f894e2bda72a491610 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 23 May 2013 13:51:41 +0000 Subject: [PATCH] fix problem regarding the ability to save a groups emailaddress --- phpgwapi/inc/class.accounts.inc.php | 16 ++++++++-------- phpgwapi/inc/class.accounts_sql.inc.php | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/phpgwapi/inc/class.accounts.inc.php b/phpgwapi/inc/class.accounts.inc.php index 8731af5a1d..4661acf19c 100644 --- a/phpgwapi/inc/class.accounts.inc.php +++ b/phpgwapi/inc/class.accounts.inc.php @@ -139,14 +139,14 @@ class accounts * * @return accounts */ - public static function getInstance() - { - if (self::$_instance === NULL) - { - self::$_instance = new accounts; - } - return self::$_instance; - } + public static function getInstance() + { + if (self::$_instance === NULL) + { + self::$_instance = new accounts; + } + return self::$_instance; + } /** * Constructor diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index 99457d424d..fc7918f8ad 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -214,7 +214,7 @@ class accounts_sql } } // store group-email in mailaccounts table - if ($data['account_id'] < 0 && class_exists('emailadmin_smtp_sql', false)) + if ($data['account_id'] < 0 && class_exists('emailadmin_smtp_sql', isset($data['account_email']))) { try { if (empty($data['account_email'])) @@ -235,7 +235,7 @@ class accounts_sql } } // ignore not (yet) existing mailaccounts table - catch (egw_exception_db $e) { } + catch (egw_exception_db $e) {} } return $data['account_id']; }