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

This commit is contained in:
Ralf Becker 2010-03-25 08:48:58 +00:00
parent 41c4ae0536
commit ac75c349b8

View File

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