forked from extern/egroupware
fix problem regarding the ability to save a groups emailaddress
This commit is contained in:
parent
d894051d1e
commit
a7944a3b76
@ -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
|
||||
|
@ -215,7 +215,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']))
|
||||
@ -236,7 +236,7 @@ class accounts_sql
|
||||
}
|
||||
}
|
||||
// ignore not (yet) existing mailaccounts table
|
||||
catch (egw_exception_db $e) { }
|
||||
catch (egw_exception_db $e) {}
|
||||
}
|
||||
return $data['account_id'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user