"calling split_accounts with 'merge' it type is NOT either 'accounts' or 'groups'"

This commit is contained in:
Ralf Becker 2010-03-25 08:50:48 +00:00
parent b7e6c4aa93
commit e841c4ce76

View File

@ -289,7 +289,8 @@ class accounts
$valid = array();
if ($app)
{
$valid = $this->split_accounts($app,$param['type'] == 'both' ? 'merge' : $param['type']);
// we want the result merged, whatever it takes, as we only care for the ids
$valid = $this->split_accounts($app,!in_array($param['type'],array('accounts','groups')) ? 'merge' : $param['type']);
}
if ($group)
{